Skip to content

Commit

Permalink
Fixed uriInfo to work with keycloak standalone for jboss
Browse files Browse the repository at this point in the history
This class would error out after return from Duo prompt with a java error missing method getUriInfo in jboss resteasy.

Deployed / tested in keycloak 16.1.0
  • Loading branch information
richard-9000 authored Jan 17, 2022
1 parent 0aac46c commit 7e8bcda
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 7e8bcda

Please sign in to comment.