Storyden
Admin

O Auth Remote Connection Create

Create a remote OAuth connection using CIMD, DCR, or manual configuration. CIMD is preferred when discovery supports it.

POST
/admin/oauth/remote/connections

Create a remote OAuth connection using CIMD, DCR, or manual configuration. CIMD is preferred when discovery supports it.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
resource_url*string
Formaturi
mode?OAuthRemoteMode
Value in"cimd""dcr""manual"
scope?string
manual?

Response Body

Remote OAuth connection.

application/json
  1. response
id*Identifier

A unique identifier for this resource.

Formatxid
createdAt*CreatedAt

The time the resource was created.

Formatdate-time
updatedAt*UpdatedAt

The time the resource was updated.

Formatdate-time
resource_url*string
Formaturi
resource?string
resource_name?string
authorization_server?string
Formaturi
mode*OAuthRemoteMode
Value in"cimd""dcr""manual"
status*OAuthRemoteStatus
Value in"pending""connected""error"
client_id?string
has_client_secret*boolean
authorization_endpoint?string
Formaturi
token_endpoint?string
Formaturi
registration_endpoint?string
Formaturi
token_endpoint_auth_method?string
redirect_uri?string
Formaturi
redirect_uris?array<>
scope?string
has_access_token*boolean
has_refresh_token*boolean
token_type?string
token_expiry?string
Formatdate-time
last_error?string
Example Request
curl -X POST 'https://example.com/api/admin/oauth/remote/connections' \  -H 'Content-Type: application/json' \  -d '{  "resource_url": "http://example.com"}'
Example Response
{  "id": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "resource_url": "http://example.com",  "resource": "string",  "resource_name": "string",  "authorization_server": "http://example.com",  "mode": "cimd",  "status": "pending",  "client_id": "string",  "has_client_secret": true,  "authorization_endpoint": "http://example.com",  "token_endpoint": "http://example.com",  "registration_endpoint": "http://example.com",  "token_endpoint_auth_method": "string",  "redirect_uri": "http://example.com",  "redirect_uris": [    "http://example.com"  ],  "scope": "string",  "has_access_token": true,  "has_refresh_token": true,  "token_type": "string",  "token_expiry": "2019-08-24T14:15:22Z",  "last_error": "string"}