-
In many example provided the configuration of oathkeeper is the following:
If I add return_to_query_param parameter and an authorizer (remote_json with keto), if the user is already logged but don't have the right to access to this ressource, it will be redirect to login (and worse with return_to_query_param, in redirect loop). I'm missing something or there is a lacks in the redirect error, like multiple urls? How does it suppose to be handled in production environment? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
For who wants this feature, I made a quick and dirty improvement: diorcety@50643ff Here an example
|
Beta Was this translation helpful? Give feedback.
-
I was struggling to determine why this was not already in Oathkeeper. However after playing around with it and actually attempting to implement, it seems as if all one needs to do is check the session on the redirect landing page. If there is a session, then the only other reason they'd be here is because they're forbidden. If there is no session, then send them to the login page as there is no credential (unauthorized). In other words, this solution while it does address the problem, may not be required with the above. Super new here, but we've scoured the documentation and found nothing definitive on this. Thanks for any corrections / suggestions folks may have. |
Beta Was this translation helpful? Give feedback.
For who wants this feature, I made a quick and dirty improvement: diorcety@50643ff
Here an example