-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Unauthenticated custom routes not working when using a function for the App's children #5036
Comments
Hi, Thank you for opening this issue 🙏 Unfortunately, I cannot reproduce your bug. Maybe it's because it has been fixed in newer versions but I'm not sure. Please follow the instructions explained in the bug report template so that I can reproduce your issue:
Regards, |
Hi, I have reproduced the issue here Sandbox with the mistake i made. Issue is in getPermissions() of authProvider if it returns @razdvapoka you might also be doing same thing too, so this might helps |
Hello @razdvapoka ! Do you have fixed your issue? If so, please inform us so that we can close the issue. |
I am having the same issue |
No news for some time, closing. |
We also noticed this behaviour. Because custom routes are based on the current resolved permissions if the It makes sense this behaviour because In order to solve this, instead of change the core behaviour that expects the permissions resolved, a new wrapper like a |
What you were expecting:
Custom route renders without authentication.
What happened instead:
It gets redirected to /login page.
Steps to reproduce:
Other information:
I think it happens because the
CoreAdminRouter
tries to initialize resources even when you are not authenticated. The attempt to get permissions is rejected and the app logs out which redirects you to the login page.Related closed issue
Environment
The text was updated successfully, but these errors were encountered: