@FrameworkRestController @FrameworkMapping(value="/client-discovery") public class ClientDiscoveryEndpoint extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientDiscoveryEndpoint.ClientDiscoveryResponse |
static class |
ClientDiscoveryEndpoint.ClientDiscoveryType |
| Constructor and Description |
|---|
ClientDiscoveryEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService) |
| Modifier and Type | Method and Description |
|---|---|
ClientDiscoveryEndpoint.ClientDiscoveryResponse |
getClientDiscovery(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo,
String type)
Returns a
ClientDiscoveryEndpoint.ClientDiscoveryResponse with the client ID for the provided parameters. |
public static final String BASE_URI
public ClientDiscoveryEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService)
@FrameworkGetMapping public ClientDiscoveryEndpoint.ClientDiscoveryResponse getClientDiscovery(@ContextOperation(value=READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestParam String type)
ClientDiscoveryEndpoint.ClientDiscoveryResponse with the client ID for the provided parameters.
Used by the commerce and admin application to discover the OAuth2Utils.CLIENT_ID
parameter that should be passed when making authorization and token requests.contextInfo - the contexttype - the ClientDiscoveryEndpoint.ClientDiscoveryTypeCopyright © 2021. All rights reserved.