1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 11:52:34 +01:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot 2022-01-30 16:44:19 +00:00 committed by Dan Brown
parent e17cdab420
commit 4a1d060eb9

View File

@ -165,6 +165,7 @@ class OidcProviderSettings
{
return array_filter($keys, function (array $key) {
$alg = $key['alg'] ?? null;
return $key['kty'] === 'RSA' && $key['use'] === 'sig' && (is_null($alg) || $alg === 'RS256');
});
}