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

Make request from app to get 401 instead of oauth redirect #1

Open
jvalkeal opened this issue Mar 15, 2020 · 0 comments
Open

Make request from app to get 401 instead of oauth redirect #1

jvalkeal opened this issue Mar 15, 2020 · 0 comments

Comments

@jvalkeal
Copy link
Owner

When angular app does a request it should get 401 instead of redirect for oauth login as app really can't handle it. There is a fix for this for non-webflux config spring-projects/spring-security#6812.

There's currently a hack to work around this as in a SecurityController we simply force 401 in exception handler which works as we force app to go into /oauth2/authorization/github when doing a login.

I'd just like oauth login to work as is if user manually goes to api methods.

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