Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
KannarFr committed Nov 20, 2023
1 parent 681c7ac commit 68d1478
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ public void testTokenFromHttpParams() throws Exception {
doReturn(0).when(servletRequest).getRemotePort();

AuthenticationState authState = provider.newHttpAuthState(servletRequest);
provider.authenticate(authState.getAuthDataSource());
String subject = provider.authenticate(authState.getAuthDataSource());
assertThat(subject, new StringStartsWith("biscuit:"));

provider.close();
}

@Test
Expand Down Expand Up @@ -170,6 +173,8 @@ public void testTokenFromHttpHeaders() throws Exception {
doReturn(0).when(servletRequest).getRemotePort();

AuthenticationState authState = provider.newHttpAuthState(servletRequest);
provider.authenticate(authState.getAuthDataSource());
String subject = provider.authenticate(authState.getAuthDataSource());
assertThat(subject, new StringStartsWith("biscuit:"));
provider.close();
}
}

0 comments on commit 68d1478

Please sign in to comment.