From d85690a162d04153f707ef87cd44a5368476a91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Kooman?= Date: Wed, 20 Mar 2024 17:38:36 +0100 Subject: [PATCH] simplify code somewhat --- composer.lock | Bin 9474 -> 9474 bytes web/well-known.php | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index 2ef4d9afbe54d12e7cb12a10a83af314f2e8c6e8..b93f4cc3432190a6f18e8bd2f8ddfc1f7996a007 100644 GIT binary patch delta 74 zcmZqjYVz8k#iU`9Vs4UTWMN=wnq+EhYMGK|W|nATo@``bW|(G@VwPf=YM5k{WN1El eBAeXi0;XUVb~7tu6Dw2W$rpvJHnXt*lLY_?kQD*| delta 74 zcmZqjYVz8k#iU`7mS|*VU~Fh+Zfas|k!oOKVr*cMWMG+=WMO7vVV0a|X_{alg(); $publicKeySet->add($secretKey->publicKey()); } foreach (glob($baseDir . '/config/keys/ed_*.key') as $secretKeyFile) { $secretKey = EdDSASecretKey::load(FileIO::read($secretKeyFile)); - $supportedAlgList[] = $secretKey->alg(); $publicKeySet->add($secretKey->publicKey()); } @@ -62,7 +61,7 @@ try { $request->getRootUri() . 'openid/authorize', $request->getRootUri() . 'openid/token', $request->getRootUri() . 'openid/userinfo', - array_values(array_unique($supportedAlgList)), + $publicKeySet->algList(), $request->getRootUri() . 'openid/jwks' ) ); -- 2.45.2