Docs › API Reference › OAuth Service › GET /oauth/{provider}/authorize
GET /oauth/{provider}/authorize
Generate a third-party OAuth authorization redirect URL based on the provider name. The state parameter is optional; if not provided, it will be auto-generated and signed.
OAuth None application/json
Request Parameters
Name In Type Required Default Example Constraints Description
provider
path
string
Yes
Provider name
state
query
string
No
OAuth state parameter
Referenced Schemas
dto.AuthorizeURLResponse
OAuth authorization URL response
Field Type Required Example Constraints Description
auth_url
string
No
https://provider.com/authorize?client_id=...
Authorization URL
state
string
No
random-state-string
Status
dto.DataResponse-dto_AuthorizeURLResponse
Field Type Required Example Constraints Description
code
integer
No
data
dto.AuthorizeURLResponse
No
message
string
No
timestamp
string
No
gitee_com_linmes_authms_base_dto.SimpleResponse
Field Type Required Example Constraints Description
code
integer
No
message
string
No
timestamp
string
No