mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-04 17:21:43 +02:00
Add authentication and authorization
This commit is contained in:
@ -244,12 +244,12 @@ paths:
|
||||
'200':
|
||||
description: >
|
||||
Successfully authenticated.
|
||||
The session ID is returned in a cookie named `connect.sid`. You need to include this cookie in subsequent requests.
|
||||
The session ID is returned in a cookie named `jwt`. You need to include this cookie in subsequent requests.
|
||||
headers:
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
example: connect.sid=abcde12345; Path=/; HttpOnly
|
||||
example: jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiJhZG1pbiIsImlhdCI6MTYwMTY1MDYwNSwiZXhwIjoxNjAxNjU0MjA1fQ.uGvOlBAZdbPT8U9s7jEt5PUWyxLrpgaf02EoPVC_Zlsd; Path=/; HttpOnly
|
||||
/auth/logout:
|
||||
get:
|
||||
summary: Logs the user out and invalidates the session on the server
|
||||
@ -345,7 +345,7 @@ components:
|
||||
cookieAuth: # arbitrary name for the security scheme; will be used in the "security" key later
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: connect.sid # cookie name
|
||||
name: jwt # cookie name
|
||||
schemas:
|
||||
QueueEntry:
|
||||
type: object
|
||||
|
Reference in New Issue
Block a user