Skip to content

Commit

Permalink
remove unwanted Props
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Nov 7, 2024
1 parent d2901fa commit 2bfa5bf
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@
*/
public class JITUserAssociationTestCase extends AbstractIdentityFederationTestCase {

private static final String SHARE_FEDERATED_TOKEN_CONFIG = "ShareFederatedToken";
private static final String FEDERATED_TOKEN_ALLOWED_SCOPE = "FederatedTokenAllowedScope";
private static final String PRIMARY_IS_SP_NAME = "travelocity";
private static final String PRIMARY_IS_IDP_NAME = "trustedIdP";
private static final String PRIMARY_IS_IDP_AUTHENTICATOR_NAME_OIDC = "OpenIDConnectAuthenticator";
Expand All @@ -161,9 +159,6 @@ public class JITUserAssociationTestCase extends AbstractIdentityFederationTestCa
private static final String SECONDARY_IS_LOGOUT_ENDPOINT = "https://localhost:9854/oidc/logout";
private static final String SECONDARY_IS_AUTHORIZE_ENDPOINT = "https://localhost:9854/oauth2/authorize";
private static final String HTTPS_LOCALHOST_SERVICES = "https://localhost:%s/";
private static final String TRUE = "true";
private static final String SCOPES_APPROVED_FOR_TOKEN_SHARING =
"https://www.googleapis.com/auth/calendar.readonly https://www.googleapis.com/auth/calendar";
private static final String NAME_KEY = "name";
private static final String GIVEN_NAME_KEY = "givenName";
private static final String FAMILY_NAME_KEY = "familyName";
Expand Down Expand Up @@ -227,9 +222,9 @@ public void initTest() throws Exception {
createServiceClients(PORT_OFFSET_1, new IdentityConstants.ServiceClientType[]{
IdentityConstants.ServiceClientType.APPLICATION_MANAGEMENT});

createApplicationInSecondaryIS();//Create application in Google and obtain the clientID and the clientSecret
createIDPInPrimaryIS();//Google IDP in IS
createApplicationInPrimaryIS();// CallMeName app in IS
createApplicationInSecondaryIS();
createIDPInPrimaryIS();
createApplicationInPrimaryIS();

secondaryISScim2RestClient = new SCIM2RestClient(getSecondaryISURI(), tenantInfo);
primaryISScim2RestClient = new SCIM2RestClient(getPrimaryISURI(), tenantInfo);
Expand Down Expand Up @@ -607,14 +602,6 @@ private void createIDPInPrimaryIS() throws Exception {
.addProperty(new org.wso2.identity.integration.test.rest.api.server.idp.v1.model.Property()
.key(IdentityConstants.Authenticator.OIDC.OIDC_LOGOUT_URL)
.value(SECONDARY_IS_LOGOUT_ENDPOINT))
// Enable sharing federated token
.addProperty(new org.wso2.identity.integration.test.rest.api.server.idp.v1.model.Property()
.key(SHARE_FEDERATED_TOKEN_CONFIG)
.value(TRUE))
// Configuring the allowed scope for federated sharing
.addProperty(new org.wso2.identity.integration.test.rest.api.server.idp.v1.model.Property()
.key(FEDERATED_TOKEN_ALLOWED_SCOPE)
.value(SCOPES_APPROVED_FOR_TOKEN_SHARING))
.addProperty(new org.wso2.identity.integration.test.rest.api.server.idp.v1.model.Property()
.key("commonAuthQueryParams")
.value("scope=" + OAuth2Constant.OAUTH2_SCOPE_OPENID_WITH_INTERNAL_LOGIN));
Expand Down

0 comments on commit 2bfa5bf

Please sign in to comment.