-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Admin authentication problems #427
Comments
I think it's more complex than it appears... The whole project uses Keycloak for authentication and authorization, so it shares the same login page. AFAIK it's not easily possible to have a different login page between the admin and the front without changing the architecture of the project with a definitively more complex one... (this project aims to be simple) The logout bug has a fix in progress (#428). IMHO the problem here is that this admin doesn't show a clean "Forbidden" page here. Do you know how to handle that properly? |
React-admin has the notion of "authentication" (anonymous vs identified users) and of "authorization" (the levels of credentials an authenticated user has). Displaying a custom "forbidden" page to an identified users without enough permissions requires reading the permissions with https://marmelab.com/react-admin/usePermissions.html You'll need to implement the |
I tried to implement something, but I'm definitely not a JS expert... I'm stuck on the following error, if you have any idea how to fix it: Reproducer available here: #429 |
Description
When visiting the demo for the first time, if I click on the "Admin" button, I see a login page. It presents 2 possible test accounts: John Doe and Chuck Norris.
Logging in with the first one leads to an admin with an error message.
Furthermore, it is impossible to log out to try the other user. Clicking on the "Logout" button in the user menu doesn't redirect to the login page.
How to reproduce
Possible Solution
The text was updated successfully, but these errors were encountered: