Fix OIDC users unable to access UI after login#469
Conversation
tale
left a comment
There was a problem hiding this comment.
We have a useLiveData() hook (or something similarly named). This would be a good way to automatically check for access and refresh (something which I think should've already been there from the start).
Please switch your implementation to check every 3 seconds instead of explicitly checking to align with the rest of Headplane's UI.
Replaces manual refresh button with automatic 3-second polling. Adds unit tests for the live data hook behavior.
1dd9937 to
2e5bb79
Compare
@tale : Like this? See description. |
|
Amazing, and I love the unit tests, thank you so much! |
Fixes #458
When new OIDC users log in after the first user, they get the member role with no capabilities. Previously this showed an unhelpful access denied message.
This adds a dedicated pending approval page that:
Also shows "Pending Approval" status in the users list so admins can see who needs approval.
Includes unit tests for the roles system and live data refresh behavior.
Update: Changed from manual refresh button to automatic polling using the existing
useLiveData()hook per reviewer feedback.