Replace the current environment-variable-based allowed users list with a dynamic Azure AD User Managed Group (UMG).
Current Behavior
- Allowed users are stored in an ENV variable
- Header from OAuth (Azure AD) is checked against this list to authorize access
Desired Behavior
- Maintain a User Managed Group (UMG) in Azure AD
- Application checks UMG on user login
- Only members of the UMG are authorized
Implementation Steps
Replace the current environment-variable-based allowed users list with a dynamic Azure AD User Managed Group (UMG).
Current Behavior
Desired Behavior
Implementation Steps
Create a User Managed Group (UMG) in Azure AD
Add current allowed users to this UMG
Update app auth code to query Azure AD for group membership using OAuth token
Check ScholarSphere for an implementation example
Replace ENV-based lookup with UMG membership check
Write specs to test: