From 95c86298a041b53e033bb4ef57e9efcd330c2275 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Fri, 10 Apr 2020 17:03:06 +0200 Subject: [PATCH] v2 --- openapi.json | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/openapi.json b/openapi.json index e848841..3012818 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", @@ -305,16 +305,24 @@ } }, "securitySchemes": { - "api-key": { - "type": "apiKey", - "name": "api-key", - "in": "header" + "oidc": { + "flows": { + "clientCredentials": { + "tokenUrl": "http://filled.later", + "refreshUrl": "http://filled.later", + "scopes": { + "openid": "" + } + } + }, + "type": "oauth2" } } }, "security": [ { - "api-key": [ + "oidc": [ + "openid" ] } ]