Skip to content

Commit

Permalink
feat: custom saml idp
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba committed Jan 8, 2025
1 parent dbc3ec2 commit decd00c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ public Response customHandleSamlResponse(String samlResponse, String relayState,

SAMLDocumentHolder holder = extractResponseDocument(samlResponse);

logger.info("im here");

if (holder == null) {
logger.error("saml response is null");
event.event(EventType.IDENTITY_PROVIDER_RESPONSE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
public class OverrideSAMLIdentityProviderFactory extends SAMLIdentityProviderFactory {

public static final String PROVIDER_ID = "saml-custom";

private DestinationValidator destinationValidator;

@Override
Expand All @@ -23,6 +24,11 @@ public OverrideSAMLIdentityProvider create(KeycloakSession session, IdentityProv

@Override
public String getName() {
return "Custom SAML Identity Provider";
return "SAML v2.0 - Custom";
}

@Override
public SAMLIdentityProviderConfig createConfig() {
return new SAMLIdentityProviderConfig();
}
}

0 comments on commit decd00c

Please sign in to comment.