File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
src/Support/Generator/SecuritySchemes Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 5
5
class OAuthFlow
6
6
{
7
7
public string $ authorizationUrl = '' ;
8
+
8
9
public string $ tokenUrl = '' ;
10
+
9
11
public string $ refreshUrl = '' ;
12
+
10
13
/** @var array<string, string> */
11
14
public array $ scopes = [];
12
15
13
16
public function authorizationUrl (string $ authorizationUrl ): OAuthFlow
14
17
{
15
18
$ this ->authorizationUrl = $ authorizationUrl ;
19
+
16
20
return $ this ;
17
21
}
18
22
19
23
public function tokenUrl (string $ tokenUrl ): OAuthFlow
20
24
{
21
25
$ this ->tokenUrl = $ tokenUrl ;
26
+
22
27
return $ this ;
23
28
}
24
29
25
30
public function refreshUrl (string $ refreshUrl ): OAuthFlow
26
31
{
27
32
$ this ->refreshUrl = $ refreshUrl ;
33
+
28
34
return $ this ;
29
35
}
30
36
Original file line number Diff line number Diff line change 5
5
class OAuthFlows
6
6
{
7
7
public ?OAuthFlow $ implicit = null ;
8
+
8
9
public ?OAuthFlow $ password = null ;
10
+
9
11
public ?OAuthFlow $ clientCredentials = null ;
12
+
10
13
public ?OAuthFlow $ authorizationCode = null ;
11
14
12
15
public function implicit (?OAuthFlow $ flow ): OAuthFlows
13
16
{
14
17
$ this ->implicit = $ flow ;
18
+
15
19
return $ this ;
16
20
}
17
21
18
22
public function password (?OAuthFlow $ flow ): OAuthFlows
19
23
{
20
24
$ this ->password = $ flow ;
25
+
21
26
return $ this ;
22
27
}
23
28
24
29
public function clientCredentials (?OAuthFlow $ flow ): OAuthFlows
25
30
{
26
31
$ this ->clientCredentials = $ flow ;
32
+
27
33
return $ this ;
28
34
}
29
35
30
36
public function authorizationCode (?OAuthFlow $ flow ): OAuthFlows
31
37
{
32
38
$ this ->authorizationCode = $ flow ;
39
+
33
40
return $ this ;
34
41
}
35
42
Original file line number Diff line number Diff line change 19
19
'type ' => 'apiKey ' ,
20
20
'in ' => 'query ' ,
21
21
'name ' => 'api_token ' ,
22
- ]
22
+ ],
23
23
]);
24
24
});
25
25
You can’t perform that action at this time.
0 commit comments