From 2611a1568d5f53d8d98973213aa45d0df02c57db Mon Sep 17 00:00:00 2001 From: Darrel Date: Thu, 3 Oct 2024 13:00:07 -0400 Subject: [PATCH 1/3] Update security.md Fix security examples as the security property is an array. --- specification/security.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/security.md b/specification/security.md index b60360a..2be6e2e 100644 --- a/specification/security.md +++ b/specification/security.md @@ -60,7 +60,7 @@ paths: /board: get: security: - defaultApiKey: [] + - defaultApiKey: [] ``` This method of referencing Security Scheme objects is valid for all types. The array shown as the value of `defaultApiKey` above is populated for OAuth Flow and OpenID Connect objects, which have some additional features that are discussed below. An empty array is provided in all other cases. @@ -146,7 +146,7 @@ paths: /board: get: security: - oauth2Profiles: [] + - oauth2Profiles: [] ``` Note that if you want to segregate grant types - where, for example, Client Credentials is only supported for a specific Operation - you'll need to create a separate Security Scheme object that can be applied individually. This is also true if you want to differentiate the available scopes, for example: @@ -191,9 +191,9 @@ paths: /board/{row}/{column}: put: security: - user2AppOauth: - - board:read - - board:write + - user2AppOauth: + - board:read + - board:write ... ``` @@ -226,7 +226,7 @@ info: and requesting the state of the board or of individual squares. version: 1.0.0 security: - openIdConnect: + - openIdConnect: - board:read - board:write ``` From 2abca202af7103e47001bd2d0036d3559760d633 Mon Sep 17 00:00:00 2001 From: Darrel Date: Thu, 3 Oct 2024 16:17:29 -0400 Subject: [PATCH 2/3] Update security.md --- specification/security.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/security.md b/specification/security.md index 2be6e2e..d00f6ae 100644 --- a/specification/security.md +++ b/specification/security.md @@ -55,7 +55,7 @@ info: and requesting the state of the board or of individual squares. version: 1.0.0 security: - defaultApiKey: [] + - defaultApiKey: [] paths: /board: get: @@ -139,13 +139,13 @@ info: and requesting the state of the board or of individual squares. version: 1.0.0 security: - oauth2Profiles: + - oauth2Profiles: - board:read - board:write paths: /board: get: - security: + - security: - oauth2Profiles: [] ``` @@ -185,8 +185,8 @@ paths: /board: get: security: - app2AppOauth: - - board:read + - app2AppOauth: + - board:read ... /board/{row}/{column}: put: From 2f05cd40691b1fd27c947e4f7fcb5e5526308982 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Tue, 8 Oct 2024 11:56:15 +0200 Subject: [PATCH 3/3] Update specification/security.md --- specification/security.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/security.md b/specification/security.md index d00f6ae..a7cbec2 100644 --- a/specification/security.md +++ b/specification/security.md @@ -145,7 +145,7 @@ security: paths: /board: get: - - security: + security: - oauth2Profiles: [] ```