Skip to content

Commit

Permalink
add basic authn id check
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Feb 12, 2024
1 parent 297bdaa commit 01cc3cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public class ApplicationNativeAuthenticationTestCase extends OAuth2ServiceAbstra
private CloseableHttpClient client;
private UserManagementClient userMgtServiceClient;
private String code;
private static final String basicAuthenticatorId = "QmFzaWNBdXRoZW50aWNhdG9yOkxPQ0FM";

@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
Expand Down Expand Up @@ -346,6 +347,8 @@ private void validInitClientNativeAuthnResponse(JSONObject json) {
authenticator.containsKey(REQUIRED_PARAMS)) {

authenticatorId = (String) authenticator.get(AUTHENTICATOR_ID);
Assert.assertEquals(authenticatorId, basicAuthenticatorId, "Authenticator Id is not " +
"equal for basic authenticator ID");
JSONObject metadataNode = (JSONObject) authenticator.get(METADATA);
if (metadataNode.containsKey(PROMPT_TYPE) && metadataNode.containsKey(PARAMS)) {
paramsArray = (JSONArray) metadataNode.get(PARAMS);
Expand Down

0 comments on commit 01cc3cf

Please sign in to comment.