Skip to content

Commit

Permalink
chore: add config to the issupported method in the legacy endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thegentlemanphysicist committed Nov 25, 2024
1 parent 5b91b73 commit 6b6ed04
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.UriBuilder;
import org.keycloak.Config;
import org.keycloak.events.EventBuilder;
import org.keycloak.models.KeycloakSession;
import org.keycloak.protocol.oidc.OIDCLoginProtocol;
Expand Down Expand Up @@ -116,8 +117,11 @@ public void setEvent(EventBuilder event) {
@Override
public void close() { /* This is ok */ }

// Testing note: the argumentless verions of this function was deprecated in KC-24, confirm that the people consuming
// this method are not hitting the `isSupported` method
// https://www.keycloak.org/docs-api/24.0.5/javadocs/org/keycloak/provider/EnvironmentDependentProviderFactory.html
@Override
public boolean isSupported() {
public boolean isSupported(Config.Scope config) {
return true;
}
}

0 comments on commit 6b6ed04

Please sign in to comment.