diff --git a/3.0/json/security-multiple.json b/3.0/json/security-multiple.json index dbaba5d..6873425 100644 --- a/3.0/json/security-multiple.json +++ b/3.0/json/security-multiple.json @@ -141,11 +141,30 @@ "type": "oauth2", "description": "An OAuth 2 security flow. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-23", "flows": { + "authorizationCode": { + "authorizationUrl": "http://example.com/oauth/dialog", + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } + }, + "clientCredentials": { + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } + }, "implicit": { "authorizationUrl": "http://example.com/oauth/dialog", "scopes": { "write:things": "Add things to your account" } + }, + "password": { + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } } } }, diff --git a/3.0/json/security.json b/3.0/json/security.json index 355be92..0e84d73 100644 --- a/3.0/json/security.json +++ b/3.0/json/security.json @@ -246,11 +246,30 @@ "type": "oauth2", "description": "An OAuth 2 security flow. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-23", "flows": { + "authorizationCode": { + "authorizationUrl": "http://example.com/oauth/dialog", + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } + }, + "clientCredentials": { + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } + }, "implicit": { "authorizationUrl": "http://example.com/oauth/dialog", "scopes": { "write:things": "Add things to your account" } + }, + "password": { + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } } } }, diff --git a/3.0/yaml/security-multiple.yaml b/3.0/yaml/security-multiple.yaml index fc9555a..35bba30 100644 --- a/3.0/yaml/security-multiple.yaml +++ b/3.0/yaml/security-multiple.yaml @@ -98,10 +98,23 @@ components: type: oauth2 description: An OAuth 2 security flow. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-23 flows: + authorizationCode: + authorizationUrl: http://example.com/oauth/dialog + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account + clientCredentials: + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account implicit: authorizationUrl: http://example.com/oauth/dialog scopes: write:things: Add things to your account + password: + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account oauth2_alternate: type: oauth2 description: An alternate OAuth 2 security flow. Functions identially to the diff --git a/3.0/yaml/security.yaml b/3.0/yaml/security.yaml index b25039e..eccacb6 100644 --- a/3.0/yaml/security.yaml +++ b/3.0/yaml/security.yaml @@ -188,10 +188,23 @@ components: type: oauth2 description: An OAuth 2 security flow. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-23 flows: + authorizationCode: + authorizationUrl: http://example.com/oauth/dialog + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account + clientCredentials: + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account implicit: authorizationUrl: http://example.com/oauth/dialog scopes: write:things: Add things to your account + password: + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account oauth2_alternate: type: oauth2 description: An alternate OAuth 2 security flow. Functions identially to the diff --git a/3.1/json/security.json b/3.1/json/security.json index 7b39a0e..2e802b1 100644 --- a/3.1/json/security.json +++ b/3.1/json/security.json @@ -251,11 +251,30 @@ "type": "oauth2", "description": "An OAuth 2 security flow. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#fixed-fields-23", "flows": { + "authorizationCode": { + "authorizationUrl": "http://example.com/oauth/dialog", + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } + }, + "clientCredentials": { + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } + }, "implicit": { "authorizationUrl": "http://example.com/oauth/dialog", "scopes": { "write:things": "Add things to your account" } + }, + "password": { + "tokenUrl": "http://example.com/oauth/token", + "scopes": { + "write:things": "Add things to your account" + } } } }, diff --git a/3.1/yaml/security.yaml b/3.1/yaml/security.yaml index acaf902..c14f3f7 100644 --- a/3.1/yaml/security.yaml +++ b/3.1/yaml/security.yaml @@ -185,10 +185,23 @@ components: type: oauth2 description: An OAuth 2 security flow. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#fixed-fields-23 flows: + authorizationCode: + authorizationUrl: http://example.com/oauth/dialog + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account + clientCredentials: + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account implicit: authorizationUrl: http://example.com/oauth/dialog scopes: write:things: Add things to your account + password: + tokenUrl: http://example.com/oauth/token + scopes: + write:things: Add things to your account oauth2_alternate: type: oauth2 description: An alternate OAuth 2 security flow. Functions identially to the