GET /oauth/{provider}/callback
Callback endpoint after third-party OAuth provider authorization. Exchanges the authorization code for an access token and fetches user info.
OAuth None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
provider |
path |
string |
Yes |
|
|
|
Provider name |
code |
query |
string |
Yes |
|
|
|
Authorization code returned by third party |
state |
query |
string |
Yes |
|
|
|
Signed state parameter |
Referenced Schemas
dto.DataResponse-dto_OAuthCallbackResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.OAuthCallbackResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.OAuthCallbackResponse
OAuth authorization callback result
| Field | Type | Required | Example | Constraints | Description |
provider |
string |
No |
github |
|
Provider |
state |
string |
No |
state-123 |
|
Status |
token |
string |
No |
gho_abc1... |
|
Token (masked) |
user_info |
object |
No |
|
|
User info |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|