Accessing request body in filters #12656
hertg
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently had to figure out how to access the request body from within Play filters. I found many questions about it online, but no answer that satisfied my requirements. So I came up with a solution that is based on the Play internal
CsrfFilter, but with some small differences. For anyone interested, I wrote about it on my blog.https://hertig.blog/posts/accessing-request-body-in-play-framework-filters/
And I also created a public repository, with a specific implementation for parsing bearer tokens from the incoming request, based on RFC 6750.
https://github.com/hertg/play-rfc6750
Beta Was this translation helpful? Give feedback.
All reactions