Skip to content

Commit

Permalink
Merge pull request #2 from richard-9000/master
Browse files Browse the repository at this point in the history
Fixed uriInfo to work with keycloak standalone for jboss
  • Loading branch information
instipod authored Jan 20, 2022
2 parents 0aac46c + 7e8bcda commit c0eb30a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void authenticate(AuthenticationFlowContext authenticationFlowContext) {
String loginState = authenticationFlowContext.getAuthenticationSession().getAuthNote("DUO_STATE");
String loginUsername = authenticationFlowContext.getAuthenticationSession().getAuthNote("DUO_USERNAME");

MultivaluedMap<String, String> queryParams = authenticationFlowContext.getHttpRequest().getUri().getQueryParameters();
MultivaluedMap<String, String> queryParams = authenticationFlowContext.getUriInfo().getQueryParameters();
if (queryParams.containsKey("state") && queryParams.containsKey("duo_code")) {
String state = queryParams.getFirst("state");
String duoCode = queryParams.getFirst("duo_code");
Expand Down

0 comments on commit c0eb30a

Please sign in to comment.