Configuring OAuth-Based Authentication
About this task
You configure the following information to enable OAuth 2.0 authentication:
- Specify the approval requirements for
client requests for client credentials.
You can specify that requests must be approved by approver groups of your choosing, or you can specify that requests will be automatically approved.
- Configure email messages to be sent
to:
- The approver groups when requests are submitted for approval.
- The clients to inform them of their approval status.
To use OAuth 2.0 client credentials to access and consume the API in CentraSite, clients must:
- Register as a consumer for the API.
When the client registration request is approved, the client receives client credentials (a client_id and client_secret).
- Request an OAuth 2.0 access token by passing the client credentials to the Mediator-hosted REST service mediator.oauth2.getOAuth2AccessToken. This service will provide an OAuth 2.0 access token to the client.
- To
call the API, the client must pass their OAuth access token in an HTTP request
header.
An OAuth 2.0 token is a unique token that a client uses to invoke APIs using the OAuth 2.0 protocol. The token contains an identifier that uniquely identifies the client. The use of a token establishes the client's identity and is used for both the authentication and authorization.
To configure API for OAuth-based client authentication