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

need 401 instead of redirect #115

Open
mlmarius opened this issue Nov 24, 2020 · 0 comments
Open

need 401 instead of redirect #115

mlmarius opened this issue Nov 24, 2020 · 0 comments

Comments

@mlmarius
Copy link

I have an Angular SPA and it's wired to receive 401 and send the user to the login page within the application. Problem is that now it gets a redirect to KeyCloak, Angular's http client attempts to follow it and I hit the Cross-Origin request problem. Is there some way to make flask-oidc return a 401 status when it checks for login instead of sending a redirect?

@mlmarius mlmarius changed the title make flask-oidc return 401 instead of redirect return 401 instead of redirect Nov 24, 2020
@mlmarius mlmarius changed the title return 401 instead of redirect need 401 instead of redirect Nov 24, 2020
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