When you try to reach a service, you get 401 Unauthorized or 403 Forbidden in response.
The error 401 Unauthorized occurs when you try to access a Service that requires authentication, and the appropriate credentials were not provided or were incorrect. You get the error 403 Forbidden when you try to access a Service or perform an action for which you lack permission.
Make sure that you are using an active JSON Web Token (JWT) with proper scopes.
-
Decode the JWT.
-
Check the validity and scopes of the JWT:
{ "sub": ********, "scp": "test", "aud": ********, "iss": ******, "exp": 1697120462, "iat": ******, "jti": ******, } -
Get a JWT if needed.