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

Task: Add login callback server action that receives simpler jwt and sets cookie for the frontend #2654

Closed
2 tasks
emilycnava opened this issue Oct 29, 2024 · 6 comments · Fixed by #3182
Closed
2 tasks
Assignees

Comments

@emilycnava
Copy link
Contributor

emilycnava commented Oct 29, 2024

Summary

Add login callback server action that receives simpler jwt and sets cookie for the frontend.

Acceptance criteria

  • Route created
  • Session cookie set for frontend that allows for frontend session
@acouch
Copy link
Collaborator

acouch commented Nov 21, 2024

Doing research on this. Start off creating an oath0 account per the nextjs-auth0 docs. I've downloaded the sample app that is similar to this one and am walking through it: https://github.com/farayez/nextjs-base/tree/main

@acouch
Copy link
Collaborator

acouch commented Nov 25, 2024

I've installed the nextjs-auth0 example and am reading through docs. I started https://docs.google.com/document/d/1oFKPbGjYK6Ku4b_0EjXygtVP-RMlHls5PnB71SSCdTg/edit?tab=t.0 to doc the workflow

@acouch
Copy link
Collaborator

acouch commented Nov 26, 2024

I've updated the auth flow mural to better show the details of the various handoffs:

Image

Will have some internal disc before proceeding.

@acouch acouch changed the title Task: Add login gov auth callback route + server action Task: Add login callback server action that receives simpler jwt and sets cookie for the frontend Dec 2, 2024
@acouch
Copy link
Collaborator

acouch commented Dec 2, 2024

Landed on Image

Investigating https://next-auth.js.org to help handle validation and session management.

@acouch
Copy link
Collaborator

acouch commented Dec 9, 2024

I've pushed a branch with a user provider scaffold: https://github.com/HHS/simpler-grants-gov/tree/acouch/issue-2654-login-callback

Will work on flushing out the handshake.

@acouch
Copy link
Collaborator

acouch commented Dec 12, 2024

I started a PR, and handed this off to @doug-s-nava

@acouch acouch assigned doug-s-nava and unassigned acouch Dec 12, 2024
@doug-s-nava doug-s-nava moved this from In Progress to In Review in Simpler.Grants.gov Product Backlog Dec 13, 2024
doug-s-nava added a commit that referenced this issue Dec 16, 2024
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow 
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
@doug-s-nava doug-s-nava moved this from In Review to Done in Simpler.Grants.gov Product Backlog Dec 16, 2024
doug-s-nava added a commit that referenced this issue Dec 17, 2024
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
doug-s-nava added a commit that referenced this issue Dec 30, 2024
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
doug-s-nava added a commit that referenced this issue Jan 2, 2025
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
acouch pushed a commit that referenced this issue Jan 2, 2025
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
doug-s-nava added a commit that referenced this issue Jan 7, 2025
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
acouch pushed a commit that referenced this issue Jan 13, 2025
* adds route at /api/auth/callback to be hit by the flask API at the completion of the login flow
* adds jwt token parsing logic
* adds support for a "SESSION_SECRET" env var
* adds a User page for temporary testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

3 participants