Class DefaultAuthServerCreationHandler
java.lang.Object
com.broadleafcommerce.auth.tenant.service.DefaultAuthServerCreationHandler
- All Implemented Interfaces:
AuthServerCreationHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuthServerCreationHandler(AuthorizationServerService<AuthorizationServer> serverService, AuthorizedClientService<AuthorizedClient> clientService, DefaultAuthServerProperties defaultAuthServerProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapplicationAlreadyHasClient(Application application) protected AuthorizationServercreateAuthorizationServer(Application application, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName) protected voidcreateAuthorizedClient(Application application, AuthorizationServer authorizationServer, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName) protected AuthorizationServercreateNewAuthServer(Application application, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName) protected AuthorizedClientService<AuthorizedClient>protected DefaultAuthServerPropertiesprotected Set<UserPermissionRef>getDefaultPermissions(DefaultAuthServerProperties.AuthServerProperties defaultAuthServerProperties) protected StringgetDefaultRedirectUri(Application application, DefaultAuthServerProperties.AuthServerProperties properties) protected Set<UserRoleRef>getDefaultUserRoles(DefaultAuthServerProperties.AuthServerProperties defaultAuthServerProperties) getRedirectUris(DefaultAuthServerProperties.AuthServerProperties properties, Application application) protected AuthorizationServerService<AuthorizationServer>protected com.broadleafcommerce.common.extension.TypeFactoryvoidhandleAuthServerCreation(Application application, String friendlyName) Creates necessary authorization servers and clients when a new application is created.protected booleanisDomainPrefixResolution(Application application) protected booleanisDomainResolution(Application application) protected booleanisParameterResolution(Application application)
-
Field Details
-
DEFAULT_GRANT_TYPE
- See Also:
-
-
Constructor Details
-
DefaultAuthServerCreationHandler
public DefaultAuthServerCreationHandler(AuthorizationServerService<AuthorizationServer> serverService, AuthorizedClientService<AuthorizedClient> clientService, DefaultAuthServerProperties defaultAuthServerProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
handleAuthServerCreation
Description copied from interface:AuthServerCreationHandlerCreates necessary authorization servers and clients when a new application is created.- Specified by:
handleAuthServerCreationin interfaceAuthServerCreationHandler- Parameters:
application- The newly created applicationfriendlyName- The user readable name to be used when creating the auth server and client.
-
applicationAlreadyHasClient
-
createAuthorizedClient
protected void createAuthorizedClient(Application application, AuthorizationServer authorizationServer, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName) -
getGrantTypes
-
getDefaultRedirectUri
protected String getDefaultRedirectUri(Application application, DefaultAuthServerProperties.AuthServerProperties properties) -
getRedirectUris
protected Set<String> getRedirectUris(DefaultAuthServerProperties.AuthServerProperties properties, Application application) -
createAuthorizationServer
protected AuthorizationServer createAuthorizationServer(Application application, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName) -
createNewAuthServer
protected AuthorizationServer createNewAuthServer(Application application, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName) -
getDefaultPermissions
protected Set<UserPermissionRef> getDefaultPermissions(DefaultAuthServerProperties.AuthServerProperties defaultAuthServerProperties) -
getDefaultUserRoles
protected Set<UserRoleRef> getDefaultUserRoles(DefaultAuthServerProperties.AuthServerProperties defaultAuthServerProperties) -
isDomainPrefixResolution
-
isParameterResolution
-
isDomainResolution
-
getServerService
-
getClientService
-
getDefaultAuthServerProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-