Skip to content

Commit af5986a

Browse files
authored
Merge pull request #4501 from ralfhandl/3.2-schema-coverage
3.2: schema test case and schema bug fix for device authorization
2 parents d2c3bdb + 5929a54 commit af5986a

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

src/schemas/validation/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ $defs:
960960
scopes:
961961
$ref: '#/$defs/map-of-strings'
962962
required:
963-
- authorizationUrl
963+
- deviceAuthorizationUrl
964964
- tokenUrl
965965
- scopes
966966
$ref: '#/$defs/specification-extensions'

tests/schema/pass/security-scheme-object-examples.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ components:
2828
description: Cert must be signed by example.com CA
2929
OAuth2:
3030
type: oauth2
31+
oauth2MetadataUrl: https://example.com/api/oauth/metadata
3132
flows:
32-
implicit:
33-
authorizationUrl: https://example.com/api/oauth/dialog
34-
scopes:
35-
write:pets: modify pets in your account
36-
read:pets: read your pets
37-
refreshUrl: https://example.com/api/oauth/refresh
3833
authorizationCode:
3934
authorizationUrl: https://example.com/api/oauth/dialog
4035
refreshUrl: https://example.com/api/oauth/refresh
@@ -52,6 +47,21 @@ components:
5247
scopes:
5348
read:pets: read your pets
5449
refreshUrl: https://example.com/api/oauth/refresh
50+
deviceAuthorization:
51+
deviceAuthorizationUrl: https://example.com/api/oauth/device
52+
tokenUrl: https://example.com/api/oauth/token
53+
scopes:
54+
read:pets: read your pets
55+
refreshUrl: https://example.com/api/oauth/refresh
56+
OAuth2Old:
57+
deprecated: true
58+
type: oauth2
59+
flows:
60+
implicit:
61+
authorizationUrl: https://example.com/api/oauth/dialog
62+
scopes:
63+
read:pets: read your pets
64+
refreshUrl: https://example.com/api/oauth/refresh
5565
OpenIdConnect:
5666
type: openIdConnect
5767
openIdConnectUrl: https://example.com/api/oauth/openid

0 commit comments

Comments
 (0)