Skip to content

Commit

Permalink
Merge pull request #75 from sadilchamishka/fix-scope-issue-without-op…
Browse files Browse the repository at this point in the history
…enid

Remove the restriction for custom claim handling for openid flows
  • Loading branch information
sadilchamishka authored Sep 24, 2024
2 parents 9f198d1 + 9944dc9 commit d564514
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
* Copyright (c) 2016-2022, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 Inc. licenses this file to you under the Apache License,
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -13,7 +13,7 @@
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License
* under the License.
*/

package org.wso2.carbon.identity.oauth2.grant.jwt;
Expand Down Expand Up @@ -461,9 +461,7 @@ public boolean validateGrant(OAuthTokenReqMessageContext tokReqMsgCtx) throws Id
if (log.isDebugEnabled()) {
log.debug("Issuer(iss) of the JWT validated successfully");
}
if (OAuth2Util.isOIDCAuthzRequest(tokReqMsgCtx.getScope())) {
handleCustomClaims(tokReqMsgCtx, customClaims, identityProvider);
}
handleCustomClaims(tokReqMsgCtx, customClaims, identityProvider);
return true;
}

Expand Down

0 comments on commit d564514

Please sign in to comment.