Skip to content

Commit 29f3440

Browse files
authored
fix: azure overage claims start with single _ not two (#1999)
Oops.
1 parent 02a0786 commit 29f3440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/api/provider/azure.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ type AzureIDTokenClaims struct {
179179
PreferredUsername string `json:"preferred_username"`
180180
XMicrosoftEmailDomainOwnerVerified any `json:"xms_edov"`
181181

182-
ClaimNames map[string]string `json:"__claim_names"`
183-
ClaimSources map[string]AzureIDTokenClaimSource `json:"__claim_sources"`
182+
ClaimNames map[string]string `json:"_claim_names"`
183+
ClaimSources map[string]AzureIDTokenClaimSource `json:"_claim_sources"`
184184
}
185185

186186
// ResolveIndirectClaims resolves claims in the Azure Token that require a call to the Microsoft Graph API. This is typically to an API like this: https://learn.microsoft.com/en-us/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0&tabs=http

0 commit comments

Comments
 (0)