-
Notifications
You must be signed in to change notification settings - Fork 25
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
Redirect to login page when accessing a react page without being logged in #551
Comments
Unassigning myself, as backend part is done. Backend behavious is now like this:
Therefore, the react app must simply catch 401 answers and deal with them accordingly (ask for auth again). |
@marcanpilami I'm reassigning you since the basic auth prompt is still shown when trying to access a page while being logged out. It works fine when accessing "/" though, thanks. |
Note the form does not redirect to the requested URL - annoying.
Added to the policy: all non-ws URL (existing or not) are protected by form authentication . So deep links should now trigger authentication form. Still annoying: cannot find a way to redirect to requested URL after auth form... should be the default with Shiro, but it always redirects to root. |
@marcanpilami I added the code to catch 401 in API calls and redirect to the auth page, but sadly Shiro blocks the request first and shows the basic auth login. Can you check this part as well? |
Could be related to #491 , check with @marcanpilami
The text was updated successfully, but these errors were encountered: