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

Adds auth provider to frontend #51

Merged
merged 17 commits into from
Sep 27, 2023
Merged

Adds auth provider to frontend #51

merged 17 commits into from
Sep 27, 2023

Conversation

julianochoi
Copy link
Collaborator

@julianochoi julianochoi commented Jun 20, 2023

Description

  • Adds jwt validation route to backend
  • Cookie's httponly set to false
  • Enable CORS on backend
  • Adds login redirect page to frontend

Related Issue

Closes: #50

- Adds jwt validation route to backend
- Cookie's httponly set to false
- Enable CORS on backend
- Adds login redirect page to frontend

Co-authored-by: Italo A <[email protected]>
@julianochoi julianochoi added front-end Front-end feature or request back-end Back-end feature or request labels Jun 20, 2023
@julianochoi julianochoi added this to the Implement Auth milestone Jun 20, 2023
julianochoi and others added 16 commits June 21, 2023 03:31
### Frontend
- Now submits code array as a string
- Adds limit validation in the focus change
- Adds multi number input to 2fa (copy paste works)
- removes max length on input (internal validation)
### Backend
- Standardizes auth exceptions to Unauthorized
-auth log cleanup
- Separates login from auth context in the frontend
- Adds user context to Game Page
- Separates Token payload from User as different contexts
- Adds signout (rip cookies+redirect) as an effect of failed auth
- Adds /users/me route in the backend
- Fixes redirect to correct 2fa page
- Shows user's current MFA Status
- Retrieves QR code to enable MFA
- Adds toast to warn invalid code
Copy link
Owner

@iaurg iaurg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💣 🔥

@julianochoi julianochoi merged commit 61dde7e into main Sep 27, 2023
2 checks passed
@iaurg iaurg deleted the feat/front-auth branch September 27, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Back-end feature or request front-end Front-end feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Oauth to the frontend
2 participants