OAM 12c OAuth: JWT Bearer Grant Handler Flow Results In Java.lang.NullPointerException
(Doc ID 2537701.1)
Last updated on SEPTEMBER 07, 2023
Applies to:
Oracle Access Manager - Version 12.2.1.3.180904 and laterInformation in this document applies to any platform.
Oracle is not responsible for instructions/information from 3rd party sites that may be contained in this KM note
Symptoms
Customer is doing JWT Bearer Grant Flow to get OAuth Access Token from JWT Assertion
This is the JWT Bearer request:
POST /oauth2/rest/token HTTP/1.1
Host: login-tst.atradiusnet.com:443
X-OAUTH-IDENTITY-DOMAIN-NAME: SIT_JET_WebGateDomain
:
Authorization: Basic <ENCRYPTED_PASSWORD>
cache-control: no-cache
Postman-Token: 527e5b8c-2c3b-40bc-a1c1-76848305a5f0
grant_type=JWT_BEARERscope=SIT_JET_OIDCWebGateRS.openidassertion=<OPENID_ASSERTION>
Which results in:
{
"error": "invalid_grant",
"error_description": "Invalid Request"
}
… and the error from OAM is :
[SRC_CLASS: oracle.security.am.oauth2.grant.handler.JWTBearerGrantHandler] [SRC_METHOD: processGrant] Exception occurred during JWT Bearer Grant handler flow.[[java.lang.NullPointerException
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |