-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathOauthProvider.php
More file actions
37 lines (32 loc) · 888 Bytes
/
OauthProvider.php
File metadata and controls
37 lines (32 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
namespace Kami\Cocktail\Services\Auth;
use OpenApi\Attributes as OAT;
#[OAT\Schema(type: 'string')]
/**
* Provides a list of supported SSO providers.
*/
enum OauthProvider: string
{
case GitHub = 'github';
case Google = 'google';
case GitLab = 'gitlab';
case Authentik = 'authentik';
case Authelia = 'authelia';
case Keycloak = 'keycloak';
case PocketId = 'pocketid';
case Zitadel = 'zitadel';
public function getPrettyName(): string
{
return match ($this) {
self::GitHub => 'GitHub',
self::Google => 'Google',
self::GitLab => 'GitLab',
self::Authentik => 'Authentik',
self::Authelia => 'Authelia',
self::Keycloak => 'Keycloak',
self::PocketId => 'PocketId',
self::Zitadel => 'Zitadel',
};
}
}