Skip to content

Commit

Permalink
Add accessTokenDO null check
Browse files Browse the repository at this point in the history
  • Loading branch information
kalanika committed Oct 11, 2021
1 parent a9de5bd commit b951216
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private boolean validateDPoP(OAuth2TokenValidationMessageContext validationReqDT
ParseException {

AccessTokenDO accessTokenDO = (AccessTokenDO) validationReqDTO.getProperty(ACCESS_TOKEN_DO);
if (accessTokenDO.getTokenBinding() != null &&
if (accessTokenDO != null && accessTokenDO.getTokenBinding() != null &&
DPoPConstants.OAUTH_DPOP_HEADER.equalsIgnoreCase(accessTokenDO.getTokenBinding().getBindingType())) {
String dpopProof = getResourceFromMessageContext(validationReqDTO, DPoPConstants.OAUTH_DPOP_HEADER);
String httpMethod = getResourceFromMessageContext(validationReqDTO, DPoPConstants.HTTP_METHOD);
Expand Down

0 comments on commit b951216

Please sign in to comment.