Autional Autional
API Reference GitHub autional.com →

POST /admin/identity-providers/import-oidc-discovery

Import identity provider configuration from an OIDC discovery URL

Identity Providers `bearerAuth` application/json

Request Body

Schema: dto.ImportOIDCDiscoveryRequest

FieldTypeRequiredExampleConstraintsDescription
discovery_url string Yes https://idp.example.com/.well-known/openid-configuration

Responses

StatusDescriptionSchema
200OKdto.IDPDetailResponse
400Bad Requestdto.SimpleResponseWrapper
401Unauthorizeddto.SimpleResponseWrapper
500Internal Server Errordto.SimpleResponseWrapper

Referenced Schemas

dto.IDPDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.IDPResponse No
message string No
timestamp string No

dto.IDPResponse

Identity provider details

FieldTypeRequiredExampleConstraintsDescription
attribute_mapping object No extra keys: `string` Field mapping
auth_url string No https://example.com/auth Authorization endpoint
client_id string No client_123 Client ID
config object No Extra configuration
created_at string No 2026-01-01T00:00:00Z Created at
display_name string No My OIDC Provider Frontend display name
icon_url string No https://example.com/icon.png Icon URL
id string No idp_abc123 Provider ID
is_popular boolean No False Common provider
is_system boolean No False System built-in
name string No My OIDC Provider Display name
scopes array of

string

No ['[openid', 'profile', 'email]'] Scope
sort_order integer No 0 Sort order
status string No active Status
tenant_id string No tnt_xyz789 Tenant ID
token_url string No https://example.com/token Token endpoint
type string No custom Type
type_display_name string No Custom Type display name
updated_at string No 2026-04-10T14:20:00Z Updated at
user_info_url string No https://example.com/userinfo User info endpoint

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No