GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Add fbs token auth route

Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent 3aa97575
......@@ -384,6 +384,37 @@ paths:
$ref: '#/components/responses/Ok'
'401':
$ref: '#/components/responses/UnauthorizedError'
/api/auth/fbs:
post:
operationId: fbsAuth
summary: Login with a fbs token
tags:
- auth
parameters:
- in: header
name: Authorization
schema:
type: string
format: bearer
example: Bearer <FBS JWT>
responses:
'200':
description: "Login successfull"
content:
application/json:
schema:
type: object
properties:
token:
type: string
format: jwt
example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhdXRoIiwibmFtZSI6InVzZXIiLCJpYXQiOjE1MTYyMzkwMjJ9.WUxkng7jgVlgK72-Y0pc3t0e38ELuAILyQ2j6cJXopA'
user:
$ref: '#/components/schemas/User'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
/api/sessions:
get:
operationId: listSessions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment