router/api-router.go:242。controller.CreateCustomOAuthProvider,controller/custom_oauth.go:216。option:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/custom-oauth-provider/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"slug": "string",
"icon": "string",
"enabled": true,
"client_id": "string",
"client_secret": "string",
"authorization_endpoint": "string",
"token_endpoint": "string",
"user_info_endpoint": "string",
"scopes": "string",
"user_id_field": "string",
"username_field": "string",
"display_name_field": "string",
"email_field": "string",
"well_known": "string",
"auth_style": 0,
"access_policy": "string",
"access_denied_message": "string",
"property1": "string",
"property2": "string"
}'{
"success": true,
"message": "string",
"message_key": "string",
"message_params": {
"property1": "string",
"property2": "string"
},
"data": {
"id": 0,
"name": "string",
"slug": "string",
"icon": "string",
"enabled": true,
"client_id": "string",
"authorization_endpoint": "string",
"token_endpoint": "string",
"user_info_endpoint": "string",
"scopes": "string",
"user_id_field": "string",
"username_field": "string",
"display_name_field": "string",
"email_field": "string",
"well_known": "string",
"auth_style": 0,
"access_policy": "string",
"access_denied_message": "string",
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}