{
"auth_url": "https://github.com/login/oauth/authorize",
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"enabled": true,
"extra_config": {},
"provider": "QQ",
"redirect_url": "https://example.com/auth/callback",
"scopes": [
"user:email"
],
"sort_order": 0,
"token_url": "https://github.com/login/oauth/access_token",
"user_info_url": "https://api.github.com/user"
}curl --location --request POST '/super/manage/settings/oauth' \
--header 'Authorization: {{Authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"auth_url": "https://github.com/login/oauth/authorize",
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"enabled": true,
"extra_config": {},
"provider": "QQ",
"redirect_url": "https://example.com/auth/callback",
"scopes": [
"user:email"
],
"sort_order": 0,
"token_url": "https://github.com/login/oauth/access_token",
"user_info_url": "https://api.github.com/user"
}'{
"code": 20000,
"data": {
"auth_url": "https://github.com/login/oauth/authorize",
"client_id": "your_client_id",
"client_secret": "***",
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"extra_config": {},
"id": 1,
"provider": "GitHub",
"redirect_url": "https://example.com/auth/callback",
"scopes": [
"user:email"
],
"sort_order": 0,
"token_url": "https://github.com/login/oauth/access_token",
"updated_at": "2024-01-01T00:00:00Z",
"user_info_url": "https://api.github.com/user"
},
"msg": null
}