-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8360241
commit 17b365a
Showing
10 changed files
with
258 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,7 @@ public class OAuth2ServiceJWTGrantTestCase extends OAuth2ServiceAbstractIntegrat | |
private static final String COUNTRY_OIDC_CLAIM = "country"; | ||
private static final String COUNTRY_NEW_OIDC_CLAIM = "customclaim"; | ||
private static final String COUNTRY_LOCAL_CLAIM_URI = "http://wso2.org/claims/country"; | ||
private static final String STATE_LOCAL_CLAIM_URI = "http://wso2.org/claims/stateorprovince"; | ||
private static final String EMAIL_OIDC_CLAIM = "email"; | ||
private static final String EMAIL_CLAIM_VALUE = "[email protected]"; | ||
private static final String EMAIL_LOCAL_CLAIM_URI = "http://wso2.org/claims/emailaddress"; | ||
|
@@ -590,7 +591,9 @@ private void addAdminUser() throws Exception { | |
*/ | ||
private void changeCountryOIDCDialect() throws Exception { | ||
|
||
claimManagementRestClient.deleteExternalClaim(ENCODED_OIDC_CLAIM_DIALECT, COUNTRY_CLAIM_ID); | ||
ExternalClaimReq updateCountryReq = new ExternalClaimReq().claimURI(COUNTRY_OIDC_CLAIM) | ||
.mappedLocalClaimURI(STATE_LOCAL_CLAIM_URI); | ||
claimManagementRestClient.updateExternalClaim(ENCODED_OIDC_CLAIM_DIALECT, COUNTRY_CLAIM_ID, updateCountryReq); | ||
|
||
ExternalClaimReq externalClaimReq = new ExternalClaimReq(); | ||
externalClaimReq.setClaimURI(COUNTRY_NEW_OIDC_CLAIM); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.