From e155c075a2af689d0be90c846c0c18c076fc20b6 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 7 Jul 2020 15:19:27 +0200 Subject: [PATCH] v2.0 --- openapi.json | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/openapi.json b/openapi.json index 26d3c2e..dafc639 100644 --- a/openapi.json +++ b/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Library API", - "version": "1.0.0", + "version": "2.0.0", "description": "A simple API for managing authors and books.", "contact": { "name": "Eric Wittmann", @@ -321,16 +321,25 @@ } }, "securitySchemes": { - "api-key": { - "type": "apiKey", - "name": "api-key", - "in": "header" + "oidc": { + "flows": { + "clientCredentials": { + "tokenUrl": "http://filled.later", + "refreshUrl": "http://filled.later", + "scopes": { + "oidc": "oidc" + } + } + }, + "type": "oauth2", + "description": "oidc" } } }, "security": [ { - "api-key": [ + "oidc": [ + "oidc" ] } ]