You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
A clear and concise description of what happens, e.g. an exception is thrown, UI freezes.
Possible solution
I am getting exception:
IDX14100: JWT is not well formed, there are no dots (.).
The token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'.
Which has inner one with message:
Method not found: 'Byte[] Microsoft.IdentityModel.Tokens.Base64UrlEncoder.UnsafeDecode(System.ReadOnlyMemory`1<Char>)'.
With call stack:
at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.ReadToken(String encodedJson)
at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken..ctor(String jwtEncodedString)
at Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.ReadToken(String token, TokenValidationParameters validationParameters)
Additional context / logs / screenshots / links to code
I double checked all dependencies, and they look good for me.
The text was updated successfully, but these errors were encountered:
JFFby
changed the title
[Bug]
Method not found Exception
May 1, 2024
JFFby
changed the title
Method not found Exception
Method not found Exception when reading JWT token
May 1, 2024
pmaytak
changed the title
Method not found Exception when reading JWT token
[Bug] Method not found Exception when reading JWT token (Base64UrlEncoder.UnsafeDecode)
May 2, 2024
Which version of Microsoft.IdentityModel are you using?
7.5.1
Where is the issue?
Is this a new or an existing app?
Repro
I am just trying to add JWT authentication to the existed app
Expected behavior
Acess token successfully validated
Actual behavior
A clear and concise description of what happens, e.g. an exception is thrown, UI freezes.
Possible solution
I am getting exception:
Which has inner one with message:
With call stack:
Additional context / logs / screenshots / links to code
I double checked all dependencies, and they look good for me.
The text was updated successfully, but these errors were encountered: