[Bug] Token validation throws "method not found" exception after updating Microsoft.Graph.Core from v3.1.13 to 3.1.14 #2750
Labels
Bug
Product is not functioning as expected
Dependency Mismatch
Transitive dependency might be at play and create issues resulting in incorrect versions of a class
Regression
Which version of Microsoft.IdentityModel are you using?
Note that to get help, you need to run the latest version.
Microsoft.IdentityModel 8.0.1
Where is the issue?
The app is in production, working on develop branch and I have just upgraded Microsoft.Graph.Core from v3.1.13 to 3.1.14
Repro
Bearer token authentication added with .AddMicrosoftIdentityWebApi(...) is now failing.
By adding an OnAuthenticatenFaild event handler to the JwtBearerEvents I have discovered that the context has recorded the following exception:
Expected behavior
Bearer token is validated
Actual behavior
Bearer token fails validation with the abovementioned exception
Possible solution
**Workaround
Revert to Microsoft.Graph.Core v3.1.13
Additional context / logs / screenshots / links to code
Token Payload:
{
"aud": "xxxeb45c-88b6-48d6-aabe-1d1703eddxxx",
"iss": "https://login.microsoftonline.com/xxxd9d59-2c6a-4abb-bdef-8e9435690xxx/v2.0",
"iat": 1721955693,
"nbf": 1721955693,
"exp": 1721961102,
"aio": "xxx",
"azp": "xxxeb45c-88b6-48d6-aabe-1d1703eddxxx",
"azpacr": "0",
"idp": "https://sts.windows.net/xxx4cba3-2efc-41cb-9647-b0588f934xxx/",
"name": "John Citizen",
"oid": "xxxc3867-25af-493b-a117-864d988baxxx",
"preferred_username": "john.citzen@acme.com",
"rh": "xxxQ0AWZ0NX2osu0q9746UNWkOHVy0bjS2iNZIqr4dFwPt1R0dxxx",
"roles": [
"GlobalAdministrator",
"ProductAdministrator"
],
"scp": "API.Access",
"sub": "xxxXi7BUqyuQrs4E9awmCtbVDkkyDqKMuACLMeFixxx",
"tid": "xxxd9d59-2c6a-4abb-bdef-8e9435690xxx",
"uti": "4qOAcGQNf0WmdujMZt_9AA",
"ver": "2.0"
}
The text was updated successfully, but these errors were encountered: