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

User Login #11

Open
mraysu opened this issue Jan 8, 2025 · 0 comments
Open

User Login #11

mraysu opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels

Comments

@mraysu
Copy link
Collaborator

mraysu commented Jan 8, 2025

We want a login page for our admin portal. This page should be the redirect destination if any user without authorization attempts to access any page of the admin portal. Only by logging into this page can the user get authorization to access the admin portal.

Figma
image

Firebase can talk to us on both the backend and frontend. A feasible and safe pipeline would be to request login from firebase on the frontend, then use the returned UID to query data from the backend. The main benefit of logging in via the frontend is to invoke firebase session cookies (which most popular browsers support), and it is generally more secure as it means fewer private credentials we send over our own routes.

PIA login page example
Firebase Documentation

For your PR:

  • Make sure firebase project is initialized
  • Create the Login page
    • Create login form, validate login fields with comprehensive error messages
  • Add login to firebase using form fields
  • Create whatever routes needed to query user data from the backend
@mraysu mraysu added the MINI Smaller features encompassing multiple tasks label Jan 8, 2025
@mraysu mraysu changed the title [EPIC] User Login [MINI] User Login Jan 8, 2025
@mraysu mraysu mentioned this issue Jan 8, 2025
4 tasks
@mraysu mraysu changed the title [MINI] User Login User Login Jan 14, 2025
@mraysu mraysu added task and removed MINI Smaller features encompassing multiple tasks labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants