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
This will not work as the value of Authorization will be something like Bearer eyJ0eXAiO... this causes .AsJwt() to return null. To get this to work I had to do
I experienced the issue where the jwt token didn't have the sub(subject) claim and APIM was throwing a 500 internal error with the message "Expression value is invalid. The counter-key field is required." The error recorded in AppInsights when i enabled diagnostics logging for APIM.
Registered claims (iss (issuer), exp (expiration time), sub (subject), aud (audience)) in jwt token is not mandatory but recommended. so fix the jwt token to include sub claim (the user) and the following worked.
In the example User identity throttling it has the following code example.
This will not work as the value of
Authorization
will be something likeBearer eyJ0eXAiO...
this causes.AsJwt()
to return null. To get this to work I had to doto get
.AsJwt()
to not return null. Is this a error in the documentation or is this a error in the.AsJwt()
call?Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: