Error: IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS) #39
-
IdentityServer version7 .NET version8 DescriptionWe have an external provider that is using a very old version of IdentityServer. Everything was working until we upgraded to v7 of IdentityServer. Reproduction stepsNo response Expected behaviorNo response LogsNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Can you please let us know what version that IdentityServer has? |
Beta Was this translation helpful? Give feedback.
-
IdentityServer3 returns complete JWTs and it's hard to make it return non-complete ones. After upgrading, how did you come to the conclusion that their endpoint returns non-complete JWTs? |
Beta Was this translation helpful? Give feedback.
-
OK, I've made some headway and now the error I get is IDX11020: The JSON value of type: 'StartArray', could not be converted to 'JsonTokenType.String or JsonTokenType.Number'. Reading: 'System.IdentityModel.Tokens.Jwt.JwtPayload.sub' |
Beta Was this translation helpful? Give feedback.
-
IdentityServer 3 out of the box didn't return the sub as an array. So it must have been customized. |
Beta Was this translation helpful? Give feedback.
When you upgraded IdentityServer you also upgraded Microsoft's System.IdentityModel.* dependencies and maybe you even upgraded the .NET version as well. There are many nuances in these new versions that could cause this changed behavior.
Unfortunately it will take more than a chat in this discussion forum to get to the bottom of this. But we can help you via our consultancy services. Please contact us for details.