Package org.keycloak.protocol.oidc
Class OIDCLoginProtocolFactory
java.lang.Object
org.keycloak.protocol.AbstractLoginProtocolFactory
org.keycloak.protocol.oidc.OIDCLoginProtocolFactory
- All Implemented Interfaces:
LoginProtocolFactory
,ProviderFactory<LoginProtocol>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAcrClientScope
(RealmModel newRealm) addBasicClientScope
(RealmModel newRealm) protected void
addDefaults
(ClientModel client) addMicroprofileJWTClientScope
(RealmModel newRealm) Adds themicroprofile-jwt
optional client scope to the specified realm.addRolesClientScope
(RealmModel newRealm) addWebOriginsClientScope
(RealmModel newRealm) create
(KeycloakSession session) protected void
createDefaultClientScopesImpl
(RealmModel newRealm) Impl should create default client scopes.createProtocolEndpoint
(KeycloakSession session, EventBuilder event) List of built in protocol mappers that can be used to apply to clients.getId()
void
init
(Config.Scope config) Only called once when the factory is first created.void
setupClientDefaults
(ClientRepresentation rep, ClientModel newClient) Setup default values for new clients.Methods inherited from class org.keycloak.protocol.AbstractLoginProtocolFactory
addDefaultClientScopes, addDefaultClientScopes, close, createDefaultClientScopes, postInit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
USERNAME
- See Also:
-
EMAIL
- See Also:
-
EMAIL_VERIFIED
- See Also:
-
GIVEN_NAME
- See Also:
-
FAMILY_NAME
- See Also:
-
MIDDLE_NAME
- See Also:
-
NICKNAME
- See Also:
-
PROFILE_CLAIM
- See Also:
-
PICTURE
- See Also:
-
WEBSITE
- See Also:
-
GENDER
- See Also:
-
BIRTHDATE
- See Also:
-
ZONEINFO
- See Also:
-
UPDATED_AT
- See Also:
-
FULL_NAME
- See Also:
-
LOCALE
- See Also:
-
ADDRESS
- See Also:
-
PHONE_NUMBER
- See Also:
-
PHONE_NUMBER_VERIFIED
- See Also:
-
REALM_ROLES
- See Also:
-
CLIENT_ROLES
- See Also:
-
AUDIENCE_RESOLVE
- See Also:
-
ALLOWED_WEB_ORIGINS
- See Also:
-
ACR
- See Also:
-
ORGANIZATION
- See Also:
-
UPN
- See Also:
-
GROUPS
- See Also:
-
ROLES_SCOPE
- See Also:
-
WEB_ORIGINS_SCOPE
- See Also:
-
MICROPROFILE_JWT_SCOPE
- See Also:
-
ACR_SCOPE
- See Also:
-
BASIC_SCOPE
- See Also:
-
PROFILE_SCOPE_CONSENT_TEXT
- See Also:
-
EMAIL_SCOPE_CONSENT_TEXT
- See Also:
-
ADDRESS_SCOPE_CONSENT_TEXT
- See Also:
-
PHONE_SCOPE_CONSENT_TEXT
- See Also:
-
OFFLINE_ACCESS_SCOPE_CONSENT_TEXT
- See Also:
-
ROLES_SCOPE_CONSENT_TEXT
- See Also:
-
ORGANIZATION_SCOPE_CONSENT_TEXT
- See Also:
-
-
Constructor Details
-
OIDCLoginProtocolFactory
public OIDCLoginProtocolFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<LoginProtocol>
- Overrides:
init
in classAbstractLoginProtocolFactory
-
create
-
getBuiltinMappers
Description copied from interface:LoginProtocolFactory
List of built in protocol mappers that can be used to apply to clients.- Returns:
-
createDefaultClientScopesImpl
Description copied from class:AbstractLoginProtocolFactory
Impl should create default client scopes. This is called usually when new realm is created- Specified by:
createDefaultClientScopesImpl
in classAbstractLoginProtocolFactory
-
addRolesClientScope
-
addWebOriginsClientScope
-
addMicroprofileJWTClientScope
Adds themicroprofile-jwt
optional client scope to the specified realm. If amicroprofile-jwt
client scope already exists in the realm then the existing scope is returned. Otherwise, a new scope is created and returned.- Parameters:
newRealm
- the realm to which themicroprofile-jwt
scope is to be added.- Returns:
- a reference to the
microprofile-jwt
client scope that was either created or already exists in the realm.
-
addAcrClientScope
-
addBasicClientScope
-
addDefaults
- Specified by:
addDefaults
in classAbstractLoginProtocolFactory
-
createProtocolEndpoint
-
getId
-
setupClientDefaults
Description copied from interface:LoginProtocolFactory
Setup default values for new clients. This expects that the representation has already set up the client
-