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

Add login page and login handling to frontend #81

Closed
fisher60 opened this issue Apr 15, 2024 · 0 comments
Closed

Add login page and login handling to frontend #81

fisher60 opened this issue Apr 15, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request frontend Relates to UI/UX

Comments

@fisher60
Copy link
Member

Summary

We need to replicate the functionality of the existing login from the Jinja/FastApi site to the Nuxt site.
The start of the existing logic can be observed in the source code and deployed to production

The styling/theme should utilize abandon tech colors (the ones already defined in the Nuxt site and on display on the demo site)

We can be flexible with the overall layout and styling of any components and do not need to replicate the original UI from AbandonAuth (the Jinja UI was rushed and not well thought out).

This feature must also handle session/login logic as well as logout logic. User authentication does not need to be persistently stored to maintain a long-lived session, but a user should be able to login and browse the site with their login, if their login has expired or is otherwise invalid, they should be logged out and redirected to the login page. This feature must implement the requests to log a user in with AbandonAuth and the overall logic for maintaining a login session (likely a router middleware)

Acceptance Criteria

  1. A login page exists on the Nuxt site that contains one button for logging in with discord and successfully leads the user through the auth flow with discord, AbandonAuth, and results in the user being logged in with an AbandonAuth token (mimicking the login functionality of the existing Jinja/Fastapi frontend).
  2. A handler exists to manage a session, logout users and redirect them back to the login page when their token expires, direct users with no auth to the login page (if a user tries to do something like navigate to /developer-applications and they are not logged in, they should be redirected to the login page.)
@fisher60 fisher60 added enhancement New feature or request frontend Relates to UI/UX labels Apr 15, 2024
@fisher60 fisher60 self-assigned this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Relates to UI/UX
Projects
None yet
Development

No branches or pull requests

1 participant