Error detail for oauth "invalid access token"?

Is there any way to get more detail from the OAuth 2.0 plugin? The only response I'm getting is as follows:

{
    "fault": {
        "faultstring": "Invalid access token",
        "detail": {
            "errorcode": "oauth.v2.InvalidAccessToken"
        }
    }
}

which is not terribly helpful, because I need to know what part of the validation failed (i.e. lookup, timeout, product, client id, etc)

When tracing, I don't see any additional information in the flow output either.

1 1 2,206
1 REPLY 1

Hi @Paul Williams, the errorcode fro details would says the rror type in most cases,

"detail":{"errorcode":"keymanagement.service.invalid_access_token"}

"detail": {   "errorcode":"keymanagement.service.access_token_expired"}
"detail": {   "errorcode":"keymanagement.service.invalid_access_token"}
"detail": {   "errorcode": "keymanagement.service.refresh_token_expired"    }
"detail": {   "errorcode": "keymanagement.service.invalid_client-invalid_client_id"  }

we can always do custom error handling using FaultRules.

fault-handling#creatingfaultrules

Please go through the below links,

Apigee Fault Handling

Apigee-oauth-http-status-code-reference

Give it a try, if you have any queries post them here!!