jvalkeal / github-actions-dashboard

Dashboard for Github Actions
5 stars 2 forks source link

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

Open jvalkeal opened 4 years ago

jvalkeal commented 4 years ago

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 https://github.com/spring-projects/spring-security/issues/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.