mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-05-04 18:08:46 +03:00
17 lines
321 B
PHP
17 lines
321 B
PHP
<?php
|
|
|
|
namespace BookStack\Access\Oidc;
|
|
|
|
use UnitEnum;
|
|
|
|
enum OidcJwtSigningKeyAlgorithm: string
|
|
{
|
|
case RS256 = 'RS256';
|
|
case RS512 = 'RS512';
|
|
|
|
public static function getSupportedAlgorithms(): string
|
|
{
|
|
return join(',', array_map(static fn (UnitEnum $enum) => $enum->value, self::cases()));
|
|
}
|
|
}
|