Skip to content

Modify authentication to pull users' UMGs and match to an authorized group #228

@ajkiessl

Description

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

  • 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:

    • Authorized user (in UMG) can access
    • Unauthorized user (not in UMG) is blocked

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions