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

Scope out Oauth worked needed on backend #2726

Closed
1 task
chouinar opened this issue Nov 5, 2024 · 3 comments
Closed
1 task

Scope out Oauth worked needed on backend #2726

chouinar opened this issue Nov 5, 2024 · 3 comments
Assignees

Comments

@chouinar
Copy link
Collaborator

chouinar commented Nov 5, 2024

Summary

Rough work needed:

  • API endpoint that takes in information from Oauth2 (login.gov) id_token jwt
  • Same endpoint creates a JWT we use internally in the API to connect requests to a user
  • Setup of basic user tables
  • Setup of a GET /user endpoint that uses this auth token

Acceptance criteria

  • Scoped out and written tickets for work needed on backend API
@chouinar
Copy link
Collaborator Author

chouinar commented Nov 5, 2024

Rough backend tickets

Create DB tables

#2716

Create a stub endpoint for /users/token

Should return:

  • token
  • user object
  • whether the user is new

#2673

Implement integration with Oauth's jwk endpoint to fetch public token for validation:

https://pyjwt.readthedocs.io/en/stable/usage.html#oidc-login-flow

#2721

Setup logic to create our own JWT

#2808

Connect everything together in /users/token

#2810

Setup JWT parsing for our own JWT

#2809

Setup a GET /user endpoint that uses this auth

Takes in JWT we created, connects it to a user

#2676

@chouinar chouinar moved this from In Progress to In Review in Simpler.Grants.gov Product Backlog Nov 12, 2024
@chouinar
Copy link
Collaborator Author

Image

@chouinar
Copy link
Collaborator Author

Went over this in refinement, I think our rough plan is scoped out and agreed upon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant