Rewriting the bearer_token
authenticator request method
#697
BracketJohn
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Yeah we also got stung by this recently - would happily accept a PR towards changing this or making it configurable :) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We now used oathkeeper in two of our projects - both times the same problem came up: The session stores we use for token validation only accept certain request methods for token validation, but oathkeeper always preserves the HTTP method.
Hence,
PUT
requests may not be authenticated correctly, butGET
requests are. In one project we've solved this by adding a mini-service that takes any request from oathkeeper and forwards it to the session store, while changing the HTTP method toGET
.To us, this feels like a real hack, especially since other proxies often support HTTP method rewrites. What's a pattern that we can use to solve this problem on our second project? So far, wee had the following ideas:
Both don't seem all that nice, I hope that maybe we're missing something here. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions