Class DefaultClientRedirectService
java.lang.Object
com.broadleafcommerce.auth.server.service.DefaultClientRedirectService
- All Implemented Interfaces:
ClientRedirectService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClientRedirectService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRedirectToUrl(String redirectUrl, String clientId) Checks if the user is able to be redirected to the given redirect URLprotected AuthorizedClientService<AuthorizedClient>getDefaultRedirectUrlForClientId(String clientId) Used for returning the default redirect URL for the provided clientprotected AuthorizationServerService<AuthorizationServer>
-
Constructor Details
-
DefaultClientRedirectService
public DefaultClientRedirectService(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
-
-
Method Details
-
getDefaultRedirectUrlForClientId
Description copied from interface:ClientRedirectServiceUsed for returning the default redirect URL for the provided client- Specified by:
getDefaultRedirectUrlForClientIdin interfaceClientRedirectService- Parameters:
clientId- The String id of the client to resolve the redirect URL for- Returns:
- The default redirect URL for the given client, if exists, or null
-
canRedirectToUrl
Description copied from interface:ClientRedirectServiceChecks if the user is able to be redirected to the given redirect URL- Specified by:
canRedirectToUrlin interfaceClientRedirectService- Parameters:
redirectUrl- The URL to check againstclientId- The id of theAuthorizedClientto use for validating the URL- Returns:
- True if the user can be redirected to redirectUrl, else false
-
getClientService
-
getServerService
-