You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$now = new \DateTimeImmutable('1234-01-01 12:34:56.789');
311
+
312
+
$token = $tokenGenerator->generateIdToken(
292
313
'mock access token',
293
314
'mock clientId',
294
315
'mock subject',
295
316
'mock nonce',
296
-
'mock private key'
317
+
$privateKey,
318
+
null,
319
+
$now,
297
320
);
321
+
322
+
$this->assertJwtEquals([
323
+
[
324
+
'typ' => 'JWT',
325
+
'alg' => 'RS256',
326
+
],
327
+
[
328
+
'at_hash' => '1EZBnvsFWlK8ESkgHQsrIQ',
329
+
'aud' => 'mock clientId',
330
+
'azp' => 'mock clientId',
331
+
'c_hash' => '1EZBnvsFWlK8ESkgHQsrIQ',
332
+
'exp' => -23225829903.789,
333
+
'iat' => -23225829904.789,
334
+
'iss' => 'mock issuer',
335
+
'jti' => '4dc20036dbd8313ed055',
336
+
'nbf' => -23225829905.789,
337
+
'nonce' => 'mock nonce',
338
+
'sub' => 'mock subject',
339
+
],
340
+
], $token);
298
341
}
299
342
300
343
/**
301
-
* @testdox Token Generator SHOULD return a IdToken WHEN asked to generate a IdToken with clientId and privateKey
344
+
* @testdox Token Generator SHOULD return a IdToken with a Confirmation JWT Thumbprint (CNF JKT) WHEN asked to generate a IdToken with clientId and privateKey and DPOP
0 commit comments