Skip to content

Commit

Permalink
Fix test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasasr1 committed Dec 10, 2024
1 parent 56a0ba9 commit 74cce72
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager;
import org.wso2.identity.integration.test.oauth2.OAuth2ServiceAbstractIntegrationTest;
import org.wso2.identity.integration.test.oauth2.dataprovider.model.ApplicationConfig;
import org.wso2.identity.integration.test.oauth2.dataprovider.model.UserClaimConfig;
import org.wso2.identity.integration.test.rest.api.common.RESTTestBase;
import org.wso2.identity.integration.test.rest.api.server.application.management.v1.model.ApplicationResponseModel;
import org.wso2.identity.integration.test.rest.api.server.application.management.v1.model.ApplicationSharePOSTRequest;
Expand Down Expand Up @@ -131,8 +132,13 @@ protected boolean isRedirectable(String method) {
}
}).build();

List<UserClaimConfig> userClaimConfigs = Collections.singletonList(
new UserClaimConfig.Builder().localClaimUri("http://wso2.org/claims/emailaddress").oidcClaimUri("email")
.build());

// Create an application.
ApplicationConfig applicationConfig = new ApplicationConfig.Builder()
.claimsList(userClaimConfigs)
.grantTypes(new ArrayList<>(Collections.singleton(OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE)))
.tokenType(ApplicationConfig.TokenType.OPAQUE)
.expiryTime(3600)
Expand Down

0 comments on commit 74cce72

Please sign in to comment.