Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the restriction for custom claim handling for openid flows #75

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading