+3
-1
src/Auth/OAuthEngine.php
+3
-1
src/Auth/OAuthEngine.php
···
49
49
$pdsEndpoint,
50
50
$scopes,
51
51
$codeChallenge,
52
+
$state,
52
53
$dpopKey
53
54
);
54
55
···
107
108
string $pdsEndpoint,
108
109
array $scopes,
109
110
string $codeChallenge,
111
+
string $state,
110
112
DPoPKey $dpopKey
111
113
): array {
112
114
$parUrl = $pdsEndpoint.'/oauth/par';
···
120
122
'scope' => implode(' ', $scopes),
121
123
'code_challenge' => $codeChallenge,
122
124
'code_challenge_method' => 'S256',
123
-
'state' => Str::random(32),
125
+
'state' => $state,
124
126
]);
125
127
126
128
if ($response->failed()) {