mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-03-12 16:11:43 +01:00
Add initial authentication for OpenAPI
Currently only contains basic auth definitions to keep it simple stupid. Mostly just following https://swagger.io/docs/specification/v3_0/authentication/basic-authentication/
This commit is contained in:
parent
06083a63e3
commit
23691eb746
28
api/openapi/authentication.yaml
Normal file
28
api/openapi/authentication.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
openapi: 3.0.3
|
||||||
|
info:
|
||||||
|
title: FabAccess Auth API
|
||||||
|
version: 0.0.1
|
||||||
|
|
||||||
|
paths: {}
|
||||||
|
|
||||||
|
components:
|
||||||
|
responses:
|
||||||
|
Unauthorized:
|
||||||
|
description: Authentication information is missing or invalid
|
||||||
|
headers:
|
||||||
|
WWW_Authenticate:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/AuthenticationMethod'
|
||||||
|
|
||||||
|
schemas:
|
||||||
|
AuthenticationMethod:
|
||||||
|
type: string
|
||||||
|
description: Mechanism for authentication
|
||||||
|
|
||||||
|
securitySchemes:
|
||||||
|
basicAuth:
|
||||||
|
type: http
|
||||||
|
scheme: basic
|
||||||
|
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
Loading…
x
Reference in New Issue
Block a user