Class ClientDiscoveryEndpoint
java.lang.Object
com.broadleafcommerce.auth.server.web.endpoint.ClientDiscoveryEndpoint
@FrameworkRestController
@FrameworkMapping("/client-discovery")
public class ClientDiscoveryEndpoint
extends Object
Endpoint used for the discovery of authorized client details. This is used by the admin and
commerce applications to provide the client ID the users are intended to authorized against.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientDiscoveryEndpoint
(AuthorizedClientService<AuthorizedClient> authorizedClientService) -
Method Summary
Modifier and TypeMethodDescriptiongetClientDiscovery
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String type) Returns aClientDiscoveryEndpoint.ClientDiscoveryResponse
with the client ID for the provided parameters.
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
ClientDiscoveryEndpoint
-
-
Method Details
-
getClientDiscovery
@FrameworkGetMapping public ClientDiscoveryEndpoint.ClientDiscoveryResponse getClientDiscovery(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestParam String type) Returns aClientDiscoveryEndpoint.ClientDiscoveryResponse
with the client ID for the provided parameters. Used by the commerce and admin application to discover theOAuth2ParameterNames.CLIENT_ID
parameter that should be passed when making authorization and token requests.- Parameters:
contextInfo
- the contexttype
- theClientDiscoveryEndpoint.ClientDiscoveryType
- Returns:
-