docs icon indicating copy to clipboard operation
docs copied to clipboard

docs: Oathkeeper + Kratos + Keto guide

Open gen1us2k opened this issue 3 years ago • 0 comments

From February Slack harvest.

Hello guys, I am trying to setup authentication and authorization using ory in my infrastructure. Actually i have both kratos and keto correctly installed and configured, i want to add oauthkeeper in the follow scenario: an api gateway implemented through graphql federation and a set of microservices implementing partial graphs. The request can’t be authorized (with keto) by oauthkeeper as reverse proxt based on url, since it is based on the result of query resolution process. I found two solutions but i don’t know which one fits well in oauthkeeper “best practice”: Use oauthkeeper only for authentication as reverse proxy and then inside of each microservices query keto to authorize the operation. Use oauthkeeper for both authenticaton and authorization as decision engine, generating fake url for each query resolution. Therefore, each microservice (so after the resolution of a query) will make a request to oauthkeeper in order to authorize the request.

gen1us2k avatar Feb 28 '22 19:02 gen1us2k