-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOAuthFlows.php
84 lines (73 loc) · 2.28 KB
/
OAuthFlows.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
namespace Zerotoprod\DataModelOpenapi30;
use Zerotoprod\DataModel\Describe;
use Zerotoprod\DataModelOpenapi30\Helpers\DataModel;
/**
* Allows configuration of the supported OAuth Flows.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#oauth-flows-object
*/
class OAuthFlows
{
use DataModel;
/**
* Configuration for the OAuth Implicit flow
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
* @see $implicit
*/
public const implicit = 'implicit';
/**
* Configuration for the OAuth Implicit flow
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
*/
#[Describe(['nullable'])]
public ?OAuthFlow $implicit;
/**
* Configuration for the OAuth Resource Owner Password flow
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
* @see $password
*/
public const password = 'password';
/**
* Configuration for the OAuth Resource Owner Password flow
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
*/
#[Describe(['nullable'])]
public ?OAuthFlow $password;
/**
* Configuration for the OAuth Client Credentials flow.
* Previously called `application` in OpenAPI 2.0.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
* @see $clientCredentials
*/
public const clientCredentials = 'clientCredentials';
/**
* Configuration for the OAuth Client Credentials flow.
* Previously called `application` in OpenAPI 2.0.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
*/
#[Describe(['nullable'])]
public ?OAuthFlow $clientCredentials;
/**
* Configuration for the OAuth Authorization Code flow.
* Previously called `accessCode` in OpenAPI 2.0.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
* @see $authorizationCode
*/
public const authorizationCode = 'authorizationCode';
/**
* Configuration for the OAuth Authorization Code flow.
* Previously called `accessCode` in OpenAPI 2.0.
*
* @link https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-24
*/
#[Describe(['nullable'])]
public ?OAuthFlow $authorizationCode;
}