Skip to content

Add api endpoint for /api/v1.1/members/currentuser#1531

Merged
erichhuebner merged 2 commits intohubzero:devfrom
nkissebe:dev-njk-api_currentuser
Sep 9, 2021
Merged

Add api endpoint for /api/v1.1/members/currentuser#1531
erichhuebner merged 2 commits intohubzero:devfrom
nkissebe:dev-njk-api_currentuser

Conversation

@nkissebe
Copy link
Contributor

@nkissebe nkissebe commented Sep 2, 2021

currentuser endpoint resolves to the user id of the authenticated session user or oauth2 token. Oauth2 authentication takes priority if both are available. Session data is now cleared after authentication to prevent potential confusion if one were to do an oauth2 authentication for one user from within a session of another user. Currently api calls do NOT persist session data changes between calls. A future patch will add a session keep-alive call while continuing to not persist session data. API calls should not want/try/succeed in persisting data via sessions.

@erichhuebner erichhuebner merged commit 2a434d1 into hubzero:dev Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments