PUT /api/custom-oauth-provider/{id}github.com/QuantumNous/new-api/controller.UpdateCustomOAuthProvider。web_vue。controller-confirmed-sensitive。字段为动态上游数据或回调负载时,文档会明确标记,不能补造 Schema。x-debug 里的占位符;示例不含真实密码、API Key、签名、Cookie 或 Provider 密钥。Authorization: Bearer ********************{
"name": "Example OIDC",
"slug": "example-oidc",
"client_id": "client-***",
"client_secret": "<redacted-client-secret>",
"authorization_endpoint": "https://issuer.example/authorize",
"token_endpoint": "https://issuer.example/token",
"scopes": "openid profile email",
"enabled": true
}curl --location --request PUT 'http://api-dev.opensosen.cn/api/custom-oauth-provider/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Example OIDC",
"slug": "example-oidc",
"client_id": "client-***",
"client_secret": "<redacted-client-secret>",
"authorization_endpoint": "https://issuer.example/authorize",
"token_endpoint": "https://issuer.example/token",
"scopes": "openid profile email",
"enabled": true
}'{
"success": true,
"message": "",
"data": {
"id": 1,
"name": "Example OIDC",
"slug": "example-oidc",
"client_id": "client-***",
"enabled": true
}
}