Skip to content

Commit 3b7e3a6

Browse files
NFC-118 Test fix
Signed-off-by: Sander Kondratjev <sander.kondratjev@nortal.com>
1 parent ce8569a commit 3b7e3a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example/src/test/java/eu/webeid/example/security/WebEidMobileAuthInitFilterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void mobileInitBuildsDeepLinkWithEmbeddedChallenge() throws Exception {
6767
.andReturn();
6868

6969
JsonNode json = mapper.readTree(result.getResponse().getContentAsByteArray());
70-
String eidAuthUri = json.get("auth_uri").asText();
70+
String eidAuthUri = json.get("authUri").asText();
7171

7272
assertThat(eidAuthUri).startsWith("web-eid-mobile://auth#");
7373

@@ -78,6 +78,6 @@ void mobileInitBuildsDeepLinkWithEmbeddedChallenge() throws Exception {
7878
String challengeInSession = ((ChallengeNonce) Objects.requireNonNull(session.getAttribute("challenge-nonce"))).getBase64EncodedNonce();
7979

8080
assertThat(challengeInPayload).isEqualTo(challengeInSession);
81-
assertThat(payload.get("login_uri").asText()).endsWith("/auth/mobile/login");
81+
assertThat(payload.get("loginUri").asText()).endsWith("/auth/mobile/login");
8282
}
8383
}

0 commit comments

Comments
 (0)