Storyden
Admin

O Auth Remote Discover

Discover OAuth configuration for a remote protected resource URL. Storyden fetches protected resource metadata, follows the advertised authorization server, and chooses CIMD, DCR, or manual setup according to the discovered authorization server metadata.

POST
/admin/oauth/remote/discover

Discover OAuth configuration for a remote protected resource URL.

Storyden fetches protected resource metadata, follows the advertised authorization server, and chooses CIMD, DCR, or manual setup according to the discovered authorization server metadata.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
resource_url*string
Formaturi

Response Body

Remote OAuth discovery result.

application/json
  1. response
resource_url*string
Formaturi
protected_resource_metadata*
authorization_server*string
Formaturi
authorization_server_metadata*
mode*OAuthRemoteMode
Value in"cimd""dcr""manual"
client_id*string
redirect_uri*string
Formaturi
Example Request
curl -X POST 'https://example.com/api/admin/oauth/remote/discover' \  -H 'Content-Type: application/json' \  -d '{  "resource_url": "http://example.com"}'
Example Response
{  "resource_url": "http://example.com",  "protected_resource_metadata": {    "resource": "string",    "resource_name": "string",    "authorization_servers": [      "http://example.com"    ],    "bearer_methods_supported": [      "string"    ]  },  "authorization_server": "http://example.com",  "authorization_server_metadata": {    "issuer": "string",    "authorization_endpoint": "http://example.com",    "token_endpoint": "http://example.com",    "registration_endpoint": "http://example.com",    "response_types_supported": [      "string"    ],    "grant_types_supported": [      "string"    ],    "token_endpoint_auth_methods_supported": [      "string"    ],    "code_challenge_methods_supported": [      "string"    ],    "client_id_metadata_document_supported": true  },  "mode": "cimd",  "client_id": "string",  "redirect_uri": "http://example.com"}