Autional Autional
API Reference GitHub autional.com →

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

NameInTypeRequiredDefaultExampleConstraintsDescription
provider path string Yes Provider name
state query string No OAuth state parameter

Responses

StatusDescriptionSchema
200Authorization URLdto.DataResponse-dto_AuthorizeURLResponse
404Unsupported providergitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.AuthorizeURLResponse

OAuth authorization URL response

FieldTypeRequiredExampleConstraintsDescription
auth_url string No https://provider.com/authorize?client_id=... Authorization URL
state string No random-state-string Status

dto.DataResponse-dto_AuthorizeURLResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.AuthorizeURLResponse No
message string No
timestamp string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No