Closed DanishMehmoodTintash closed 8 months ago
Upon refreshing the page, the user gains access without the need to log in again.
Probably related issue: when doing a fresh login with OAuth, I get the popup and sign in but nothing happens on the login page. I have to force refresh to get into the dashboard. It seems that the user is set but authVerified
is not, preventing canAccessMainView
from flipping to true.
I think this line is wrong:
It should probably be delegateUser
not !delegateUser
, but hard to tell without comments.
This should be fixed in version 2.2.1
:)
@fgatti675 When are you planning to release version 2.2.1?
Issue Description
I've implemented access control checks in the authenticator function. If a user without access attempts to log in, the authenticator correctly blocks the user. However, if a valid user with access logs in after an unauthorized user in the same browser session, the login page displays an error stating the user is not allowed to access, even though the valid user is successfully logged in behind the scenes. Upon refreshing the page, the user gains access without the need to log in again.
Steps to Reproduce
Expected Behavior
The login page should accurately reflect the current authorized user's status without requiring a page refresh. It should immediately grant access to authorized users and block unauthorized users.
Additional Information