Class ClientDiscoveryEndpoint
- java.lang.Object
-
- com.broadleafcommerce.auth.server.web.endpoint.ClientDiscoveryEndpoint
-
@FrameworkRestController @FrameworkMapping("/client-discovery") public class ClientDiscoveryEndpoint extends ObjectEndpoint 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
Nested Classes Modifier and Type Class Description static classClientDiscoveryEndpoint.ClientDiscoveryResponsestatic classClientDiscoveryEndpoint.ClientDiscoveryType
-
Constructor Summary
Constructors Constructor Description ClientDiscoveryEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientDiscoveryEndpoint.ClientDiscoveryResponsegetClientDiscovery(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String type)Returns aClientDiscoveryEndpoint.ClientDiscoveryResponsewith the client ID for the provided parameters.
-
-
-
Field Detail
-
BASE_URI
public static final String BASE_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientDiscoveryEndpoint
public ClientDiscoveryEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService)
-
-
Method Detail
-
getClientDiscovery
@FrameworkGetMapping public ClientDiscoveryEndpoint.ClientDiscoveryResponse getClientDiscovery(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestParam String type)
Returns aClientDiscoveryEndpoint.ClientDiscoveryResponsewith the client ID for the provided parameters. Used by the commerce and admin application to discover theOAuth2Utils.CLIENT_IDparameter that should be passed when making authorization and token requests.- Parameters:
contextInfo- the contexttype- theClientDiscoveryEndpoint.ClientDiscoveryType- Returns:
-
-