Skip to content

Commit

Permalink
Fix abstract provider to conform with updated keycloak java api
Browse files Browse the repository at this point in the history
  • Loading branch information
ktogias committed Nov 17, 2023
1 parent c369241 commit 22a55bc
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
import java.io.StringReader;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import javax.ws.rs.core.UriInfo;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider;
Expand Down Expand Up @@ -56,6 +50,12 @@
import org.xml.sax.helpers.DefaultHandler;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.UriBuilder;
import jakarta.ws.rs.core.UriInfo;
import lombok.extern.jbosslog.JBossLog;

@JBossLog
Expand Down Expand Up @@ -83,7 +83,7 @@ public GsisAbstractIdentityProvider(KeycloakSession session,

@Override
public Object callback(RealmModel realm, AuthenticationCallback callback, EventBuilder event) {
return new OIDCEndpoint(callback, realm, event);
return new OIDCEndpoint(callback, realm, event, this);
}

@Override
Expand Down Expand Up @@ -196,8 +196,9 @@ private String getIDTokenForLogout(KeycloakSession session, UserSessionModel use
}

protected class OIDCEndpoint extends Endpoint {
public OIDCEndpoint(AuthenticationCallback callback, RealmModel realm, EventBuilder event) {
super(callback, realm, event);
public OIDCEndpoint(AuthenticationCallback callback, RealmModel realm, EventBuilder event,
AbstractOAuth2IdentityProvider provider) {
super(callback, realm, event, provider);
}

@Override
Expand Down

0 comments on commit 22a55bc

Please sign in to comment.