Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[proposal] OPA driven HTTP status code #33

Closed
ievgenii-shepeliuk opened this issue Nov 8, 2022 · 0 comments
Closed

[proposal] OPA driven HTTP status code #33

ievgenii-shepeliuk opened this issue Nov 8, 2022 · 0 comments

Comments

@ievgenii-shepeliuk
Copy link
Contributor

ievgenii-shepeliuk commented Nov 8, 2022

Hello

Sometimes it's required to return non 403 code but 401 instead, for example to enforce 2FA/MFA cases.
Currently it's impossible because on token / OPA error check the HTTP status code is hardcoded to 403.

Also it could be useful to make success status code OPA driven as well, i.e. extract it from configurable field of OPA response. So, OPA can force redirect to some resource for example.

WDYT ? I am read to attempt to provide a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant