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 Key Retrieval Logic to Match on app_id Prefix #5

Closed CFIALeronB closed 1 year ago

CFIALeronB commented 1 year ago

Tasks:

  1. Updated the key retrieval logic to utilize a prefix search based on the app_id.
  2. Ensure the app_id is correctly extracted from the decoded JWT payload.
  3. Implement a filter on the list of public keys to only select those that start with the extracted app_id as a prefix.
  4. Refactored related functions and methods to accommodate this change.