Class DefaultAuthServerCreationHandler
- java.lang.Object
-
- com.broadleafcommerce.auth.tenant.service.DefaultAuthServerCreationHandler
-
- All Implemented Interfaces:
AuthServerCreationHandler
public class DefaultAuthServerCreationHandler extends Object implements AuthServerCreationHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_GRANT_TYPE
-
Constructor Summary
Constructors Constructor Description DefaultAuthServerCreationHandler(AuthorizationServerService<AuthorizationServer> serverService, AuthorizedClientService<AuthorizedClient> clientService, DefaultAuthServerProperties defaultAuthServerProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_GRANT_TYPE
public static final String DEFAULT_GRANT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultAuthServerCreationHandler
public DefaultAuthServerCreationHandler(AuthorizationServerService<AuthorizationServer> serverService, AuthorizedClientService<AuthorizedClient> clientService, DefaultAuthServerProperties defaultAuthServerProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Detail
-
handleAuthServerCreation
public void handleAuthServerCreation(Application application, String friendlyName)
Description copied from interface:AuthServerCreationHandler
Creates necessary authorization servers and clients when a new application is created.- Specified by:
handleAuthServerCreation
in interfaceAuthServerCreationHandler
- Parameters:
application
- The newly created applicationfriendlyName
- The user readable name to be used when creating the auth server and client.
-
applicationAlreadyHasClient
protected boolean applicationAlreadyHasClient(Application application)
-
createAuthorizedClient
protected void createAuthorizedClient(Application application, AuthorizationServer authorizationServer, DefaultAuthServerProperties.AuthServerProperties properties, String friendlyName)
-
getGrantTypes
protected Set<String> getGrantTypes(DefaultAuthServerProperties.AuthServerProperties properties)
-
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
protected boolean isDomainPrefixResolution(Application application)
-
isParameterResolution
protected boolean isParameterResolution(Application application)
-
isDomainResolution
protected boolean isDomainResolution(Application application)
-
getServerService
protected AuthorizationServerService<AuthorizationServer> getServerService()
-
getClientService
protected AuthorizedClientService<AuthorizedClient> getClientService()
-
getDefaultAuthServerProperties
protected DefaultAuthServerProperties getDefaultAuthServerProperties()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
-