Skip to content

Commit

Permalink
Merge pull request #22154 from KD23243/fixCallback
Browse files Browse the repository at this point in the history
Update `SelfSignUpConsentTest` with Tenanted Callback Endpoint and Assertion Adjustments
  • Loading branch information
DilshanSenarath authored Jan 5, 2025
2 parents 0bf07de + db41f7b commit 7a28f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public class SelfSignUpConsentTest extends ISIntegrationTest {

public static final String CONSNT_ENDPOINT_SUFFIX = "/api/identity/consent-mgt/v1.0/consents";
public static final String USER_RECOVERY_ME_ENDPOINT = "/api/identity/user/v1.0/me";
private static final String CALLBACK_ENDPOINT = "https://localhost:9443/carbon/callback";
private static final String CALLBACK_ENDPOINT = "https://localhost:9853/carbon/callback";
private static final String TENANTED_CALLBACK_ENDPOINT = "https://localhost:9853/t/wso2.com/carbon/callback";
private static final String COUNTRY_WSO2_CLAIM = "http://wso2.org/claims/country";
private static final String CALLBACK_QUERY_PARAM = "callback";
private static final String USERNAME_QUERY_PARAM = "username";
Expand Down Expand Up @@ -147,7 +148,7 @@ public void testInitialSelfSignUpPage() throws IOException {
Assert.assertNotNull(content);
Assert.assertTrue(content.contains("Enter your username"), "Page for entering username is not prompted while" +
" self registering");
Assert.assertTrue(content.contains(CALLBACK_ENDPOINT), "Callback endpoint is not available in self " +
Assert.assertTrue(content.contains(TENANTED_CALLBACK_ENDPOINT), "Callback endpoint is not available in self " +
"registration username input page.");
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2480,7 +2480,7 @@
<!-- Identity Portal Versions -->
<identity.apps.console.version>2.36.0</identity.apps.console.version>
<identity.apps.myaccount.version>2.13.41</identity.apps.myaccount.version>
<identity.apps.core.version>2.8.8</identity.apps.core.version>
<identity.apps.core.version>2.8.11</identity.apps.core.version>
<identity.apps.tests.version>1.6.378</identity.apps.tests.version>

<!-- Charon -->
Expand Down

0 comments on commit 7a28f35

Please sign in to comment.