ai-cfia / membrane-backend

Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1 stars 0 forks source link

Update test1app.py for Enhanced User Greeting #23

Closed CFIALeronB closed 1 year ago

CFIALeronB commented 1 year ago

Description: In order to provide a more personalized experience for the user, the default greeting in test1app.py should be updated. Instead of displaying a generic "Hello World", we want the greeting to be specific to the authenticated user.

Expected Changes:

  1. Integrate decoded token information with the server session to fetch the user's email.
  2. Modify the application's greeting message to display "Hello [User's Email]" for authenticated users.

Acceptance Criteria:

  1. The application should fetch the user's email from the decoded token stored in the server session.
  2. The greeting should correctly reflect "Hello [User's Email]" for authenticated users and default to a generic greeting for unauthenticated users.