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
Create a remote OAuth connection using CIMD, DCR, or manual configuration. CIMD is preferred when discovery supports it.
cookie
storyden-session<token>application/json- body
resource_url*stringFormat
urimode?OAuthRemoteModeValue in
"cimd""dcr""manual"scope?stringmanual?Remote OAuth connection.
application/json- response
id*IdentifierA unique identifier for this resource.
Format
xidcreatedAt*CreatedAtThe time the resource was created.
Format
date-timeupdatedAt*UpdatedAtThe time the resource was updated.
Format
date-timeresource_url*stringFormat
uriresource?stringresource_name?stringauthorization_server?stringFormat
urimode*OAuthRemoteModeValue in
"cimd""dcr""manual"status*OAuthRemoteStatusValue in
"pending""connected""error"client_id?stringhas_client_secret*booleanauthorization_endpoint?stringFormat
uritoken_endpoint?stringFormat
uriregistration_endpoint?stringFormat
uritoken_endpoint_auth_method?stringredirect_uri?stringFormat
uriredirect_uris?array<>scope?stringhas_access_token*booleanhas_refresh_token*booleantoken_type?stringtoken_expiry?stringFormat
date-timelast_error?stringcurl -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"}