You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Redirect after login does not work when user does not have access to the requested URL #10681
Open /admin-only/secret.txt and log in as a user who does not have the "admin" role
Expected behavior
After login you see that you cannot access the resource
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Apr 15 17:24:26 EEST 2021
There was an unexpected error (type=Forbidden, status=403).
Forbidden
Actual behavior
You stay in the login view with the message
Incorrect username or password
Check that you have entered the correct username and password and try again.
The problem here is that a successful login is detected through a 200 response code which is incorrect. In this case the response code is 403 as the browser fetches the target URL. This 403 does not in any way indicate that the login failed
Activity
Artur- commentedon Apr 15, 2021
The problem here is that a successful login is detected through a
200response code which is incorrect. In this case the response code is 403 as the browser fetches the target URL. This 403 does not in any way indicate that the login failedAssume a non-redirect response from the server
fix: Assume a non-redirect response for login requests (#10697)
feat: Add a TypeScript client aware login success handler (#770)
feat: Add a TypeScript client aware login success handler