moleculemaker / clean-frontend

web frontend for CLEAN tool
MIT License
1 stars 0 forks source link

Implement authentication via oauth2 proxy #111

Closed bodom0015 closed 1 year ago

bodom0015 commented 1 year ago

Problem

We need the CLEAN Frontend to be able to log in, log out, fetch user info, and send an auth token along with API requests for authentication and authorization

Approach

How to Test

  1. (already running in staging) Start this image up on the cluster using ArgoCD: moleculemaker/clean-frontend:pr-111
  2. Navigate to https://clean.frontend.staging.mmli1.ncsa.illinois.edu/configuration
    • You should see a button at the top right that says Login
  3. Click the Login button at the top-right
    • You should be redirected to Keycloak to login
  4. Login or create an account in Keycloak
    • You should be redirected back to the CLEAN Frontend after you log in
    • You should see the Login button has been replaced with a Logout button
  5. Click the Logout button
    • You should be redirected back to the CLEAN Frontend after you log out
    • You should once again see the Login button at the top-right