Skip to content

Commit

Permalink
deploy: 722f57c
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Jan 15, 2024
1 parent c960f44 commit 92ab77d
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,88 @@
}
}
},
"/line-login/auth": {
"get": {
"description": "Redirects the user to LINE's OAuth service for authentication.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"OAuth"
],
"summary": "Initiate LINE OAuth login",
"parameters": [
{
"type": "string",
"description": "Redirect path after login",
"name": "redirect_path",
"in": "query"
}
],
"responses": {
"301": {
"description": "Redirect to the target URL",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "string"
}
}
}
}
},
"/line-login/callback": {
"get": {
"description": "Handles the callback from LINE's OAuth service and redirects the user to the frontend with the tokens in the query and cookies.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"OAuth"
],
"summary": "Handle LINE OAuth callback",
"parameters": [
{
"type": "string",
"description": "Authorization code",
"name": "code",
"in": "query",
"required": true
},
{
"type": "string",
"description": "State",
"name": "state",
"in": "query",
"required": true
}
],
"responses": {
"301": {
"description": "Redirect to the frontend",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "string"
}
}
}
}
},
"/user/login/{user_id}": {
"get": {
"description": "Simulates a login process for a user by generating fake access and refresh tokens",
Expand Down

0 comments on commit 92ab77d

Please sign in to comment.