Skip to content

Commit 5929a54

Browse files
committed
Schema test case for device authorization
1 parent bab4f12 commit 5929a54

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

Diff for: src/schemas/validation/schema.yaml

+1-1
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'

Diff for: tests/schema/pass/security-scheme-object-examples.yaml

+16-6
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)