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
@matmair this review process has made me question - is it a good idea to just use CSRF session auth for PUI (as we do for CUI) and not use API tokens at all? As far as I can see there are two major advantages:
Session Management
Using a single session (based on CSRF token) means that CUI and PUI are in sync. No need to manage two separate login methods (session token / API token) as we do now.
File Downloads
Moving to session auth would allow us to download files / reports / etc in the browser - a problem which is currently hard to solve with API tokens - see #5697
So, move to session token and this problem goes away (because the web session has the same token and we don't have to work out how to pass an API token to a file download).
Thoughts on this? Now that we are deep in the weeds on this is the right time to do it. I'm just not sure how to get the CSRF token into the session when you login from PUI - we have to replicate the CUI behaviour...
Activity
matmair commentedon Feb 3, 2024
login is working, looking at detecting if we logged out on CUI to log out of PUI
[PUI] Use sessions backend for login