Skip to main content

Hi,

 

I was wondering if anyone has any advice on using the JWT Validation Policy to validate an OAuth 2.0 access_token. I have been experiencing a problem where the JWT access_token validates and is signed correctly when check at https://jwt.io. Unfortunately, the JWT validation policy always results in an "invalid token" error with a 401 unauthorised response.

 

Note that I have been able to do the following:

 

  1. Get an OpenID authorisation code.
  2. Use the authorisation code to request and access_token.
  3. Use the id_token returned as part of the access_token response to make a successful call to the API via the JWT validation.
  4. However, if I use the access_token returned by the token request, I receive the "invalid token" error with a 401 unauthorised response, despite the token being a valid JWT and being signed correctly.

 

Would anyone have any pointers? I am not enforcing client ID validation or any of the claims.

 

I am actually trying to investigate using the JWT validation policy to enforce access to a systems API when called from a process API.

 

Thank you.

답변 1개
0/9000