POST /oauth/create_client
Login is required
Form data:
Name | Format | Description | Example |
---|---|---|---|
client_name | str | The name of the client | Demo |
client_uri | str | The link to the client | https://example.com/ |
grant_type | str | Type of grant to the client | authorization_code |
redirect_uri | str | The callback uri of the client | https://example.com/redirect |
response_type | str | The response | code |
scope | str | Scope of data to be granted | profile |
token_endpoint_auth_method | str | client_secret_basic |
POST /oauth/authorize
Login is required
Parameters are required
Form data:
Name | Format | Description | Example |
---|---|---|---|
confirm | bool | Whether to confirm the grant | on |
POST /oauth/authorize
Refer to OAuth2 Documentation for details
POST /oauth/revoke
Refer to OAuth2 Documentation for details
GET /oauth/api/me
JSON Response:
Name | Format | Description |
---|---|---|
id | str | The id of the user, in uuid |
username | str | The username |
OAuth2 with authorized scope profile
is required