Update providers/ms_entra_id.go

Co-authored-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Asif A Siddiqi 2025-10-28 09:01:08 -07:00 committed by GitHub
parent 0ce49de2ce
commit 5bf1dd750e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,8 @@ func (p *MicrosoftEntraIDProvider) getTenantFromToken(session *sessions.SessionS
return "", fmt.Errorf("unable to get claim extractor: %v", err)
}
// Use tenant id (tid) provided within the payload claims of the id token
// https://learn.microsoft.com/en-us/entra/identity-platform/id-token-claims-reference
value, exists, err := extractor.GetClaim("tid")
if exists && err == nil {