Skip to content
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

Implement OIDC flow that results in a query sent to the f-API including access and ID tokens #197

Closed
5 of 6 tasks
Tracked by #155
alyssadai opened this issue Jul 5, 2024 · 0 comments · Fixed by #205
Closed
5 of 6 tasks
Tracked by #155
Assignees
Labels
feat:add The first minimal viable change that implements a new functionality. type:feature Effort to deliver new features, feature changes & improvements

Comments

@alyssadai
Copy link
Contributor

alyssadai commented Jul 5, 2024

(this assumes the implicit OAuth2 scheme)

  • Query tool will redirect user to authenticate using IdP
  • Query tool should get back a code from IdP (via a redirect URL)
  • Query tool provides code back to IdP to get an access token and ID token in exchange
    - [ ] Query tool needs to verify received ID token's validity using IdP's public keys (existing JWT libraries have functionality to do this)
  • (Maybe) Query tool can then exchange access token for user profile pic from identity resource API
    • or, alternatively, query tool just displays the IdP user ID directly
  • Query tool now displays the user profile pic from IdP, and can also display the name (taken from the ID token probably)
  • When user submits a query, query tool sends a request to f-API, along with the ID & access tokens

Questions

@alyssadai alyssadai transferred this issue from neurobagel/planning Jul 5, 2024
@alyssadai alyssadai assigned alyssadai and rmanaem and unassigned alyssadai Jul 5, 2024
@rmanaem rmanaem added feat:add The first minimal viable change that implements a new functionality. type:feature Effort to deliver new features, feature changes & improvements labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat:add The first minimal viable change that implements a new functionality. type:feature Effort to deliver new features, feature changes & improvements
Projects
Status: Review - Done
2 participants