public class OIDCLoginProtocolFactory extends AbstractLoginProtocolFactory
Constructor and Description |
---|
OIDCLoginProtocolFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaults(ClientModel client) |
static ClientScopeModel |
addMicroprofileJWTClientScope(RealmModel newRealm)
Adds the
microprofile-jwt optional client scope to the specified realm. |
static ClientScopeModel |
addRolesClientScope(RealmModel newRealm) |
static ClientScopeModel |
addWebOriginsClientScope(RealmModel newRealm) |
LoginProtocol |
create(KeycloakSession session) |
protected void |
createDefaultClientScopesImpl(RealmModel newRealm)
Impl should create default client scopes.
|
Object |
createProtocolEndpoint(RealmModel realm,
EventBuilder event) |
Map<String,ProtocolMapperModel> |
getBuiltinMappers()
List of built in protocol mappers that can be used to apply to clients.
|
String |
getId() |
void |
setupClientDefaults(ClientRepresentation rep,
ClientModel newClient)
Setup default values for new clients.
|
addDefaultClientScopes, close, createDefaultClientScopes, init, postInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String USERNAME
public static final String EMAIL
public static final String EMAIL_VERIFIED
public static final String GIVEN_NAME
public static final String FAMILY_NAME
public static final String MIDDLE_NAME
public static final String NICKNAME
public static final String PROFILE_CLAIM
public static final String PICTURE
public static final String WEBSITE
public static final String GENDER
public static final String BIRTHDATE
public static final String ZONEINFO
public static final String UPDATED_AT
public static final String FULL_NAME
public static final String LOCALE
public static final String ADDRESS
public static final String PHONE_NUMBER
public static final String PHONE_NUMBER_VERIFIED
public static final String REALM_ROLES
public static final String CLIENT_ROLES
public static final String AUDIENCE_RESOLVE
public static final String ALLOWED_WEB_ORIGINS
public static final String UPN
public static final String GROUPS
public static final String ROLES_SCOPE
public static final String WEB_ORIGINS_SCOPE
public static final String MICROPROFILE_JWT_SCOPE
public static final String PROFILE_SCOPE_CONSENT_TEXT
public static final String EMAIL_SCOPE_CONSENT_TEXT
public static final String ADDRESS_SCOPE_CONSENT_TEXT
public static final String PHONE_SCOPE_CONSENT_TEXT
public static final String OFFLINE_ACCESS_SCOPE_CONSENT_TEXT
public static final String ROLES_SCOPE_CONSENT_TEXT
public LoginProtocol create(KeycloakSession session)
public Map<String,ProtocolMapperModel> getBuiltinMappers()
LoginProtocolFactory
protected void createDefaultClientScopesImpl(RealmModel newRealm)
AbstractLoginProtocolFactory
createDefaultClientScopesImpl
in class AbstractLoginProtocolFactory
public static ClientScopeModel addRolesClientScope(RealmModel newRealm)
public static ClientScopeModel addWebOriginsClientScope(RealmModel newRealm)
public static ClientScopeModel addMicroprofileJWTClientScope(RealmModel newRealm)
microprofile-jwt
optional client scope to the specified realm. If a microprofile-jwt
client scope
already exists in the realm then the existing scope is returned. Otherwise, a new scope is created and returned.newRealm
- the realm to which the microprofile-jwt
scope is to be added.microprofile-jwt
client scope that was either created or already exists in the realm.protected void addDefaults(ClientModel client)
addDefaults
in class AbstractLoginProtocolFactory
public Object createProtocolEndpoint(RealmModel realm, EventBuilder event)
public String getId()
public void setupClientDefaults(ClientRepresentation rep, ClientModel newClient)
LoginProtocolFactory
Copyright © 2020 JBoss by Red Hat. All rights reserved.