Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The ExternalOAuthClientServiceCreateRequest message.

authMethod
enum<string>

The authMethod field.

Available options:
EXTERNAL_O_AUTH_CLIENT_AUTH_METHOD_UNSPECIFIED,
EXTERNAL_O_AUTH_CLIENT_AUTH_METHOD_CLIENT_SECRET_BASIC,
EXTERNAL_O_AUTH_CLIENT_AUTH_METHOD_CLIENT_SECRET_POST,
EXTERNAL_O_AUTH_CLIENT_AUTH_METHOD_PRIVATE_KEY_JWT
clientName
string

Operator-facing name shown on the consent screen and in the admin list.

publicJwks
string

RFC 7517 JWK Set. Required when auth_method is PRIVATE_KEY_JWT and rejected otherwise.

redirectUris
string[] | null

Exact redirect URIs the client may be sent to. Microsoft's fixed literal, for example, is registered here.

Response

200 - application/json

Successful response

The ExternalOAuthClientServiceCreateResponse message.

client
External O Auth Client Info · object | null

ExternalOAuthClientInfo is the API representation of an ExternalOAuthClient.

clientSecret
string

Revealed once. Empty for PRIVATE_KEY_JWT.