Package org.keycloak.broker.provider
Interface IdentityProvider<C extends IdentityProviderModel>
- All Superinterfaces:
Provider
- All Known Subinterfaces:
ClientAssertionIdentityProvider<C>,JWTAuthorizationGrantProvider<C>,SocialIdentityProvider<C>,UserAuthenticationIdentityProvider<C>
- All Known Implementing Classes:
AbstractIdentityProvider,AbstractOAuth2IdentityProvider,BitbucketIdentityProvider,FacebookIdentityProvider,GitHubIdentityProvider,GitLabIdentityProvider,GoogleIdentityProvider,InstagramIdentityProvider,JWTAuthorizationGrantIdentityProvider,KeycloakOIDCIdentityProvider,KubernetesIdentityProvider,LinkedInOIDCIdentityProvider,MicrosoftIdentityProvider,OAuth2IdentityProvider,OIDCIdentityProvider,OpenshiftV4IdentityProvider,PayPalIdentityProvider,SAMLIdentityProvider,SpiffeIdentityProvider,StackoverflowIdentityProvider,TwitterIdentityProvider
- Author:
- Pedro Igor
-
Method Summary
Modifier and TypeMethodDescriptiondefault jakarta.ws.rs.core.Responseexport(jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, String format) Export a representation of the IdentityProvider in a specific format.default booleanChecks whether a mapper is supported for this Identity Provider.default booleanisType(KeycloakSession session, IdentityProviderType type) Returns if this Identity Provider is of the passed type.default booleanReload keys for the identity provider if permitted in it.For example OIDC or SAML providers will reload the keys from the jwks or metadata endpoint.
-
Method Details
-
getConfig
C getConfig() -
export
default jakarta.ws.rs.core.Response export(jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, String format) Export a representation of the IdentityProvider in a specific format. For example, a SAML EntityDescriptor- Returns:
-
isMapperSupported
Checks whether a mapper is supported for this Identity Provider. -
reloadKeys
default boolean reloadKeys()Reload keys for the identity provider if permitted in it.For example OIDC or SAML providers will reload the keys from the jwks or metadata endpoint.- Returns:
- true if reloaded, false if not
-
isType
Returns if this Identity Provider is of the passed type. By default it just returns true when it implements the correct interface. Sub-classes like the OIDC provider can check specific configuration options.- Parameters:
session- The helper sessiontype- The type to check- Returns:
- true if the provider is of the passed type, false otherwise
-