Download src/User/Infrastructure/SSO/IdentityProviderInterface.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/User/Infrastructure/SSO/IdentityProviderInterface.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/User/Infrastructure/SSO/IdentityProviderInterface.php
-
curl -L -o IdentityProviderInterface.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/User/Infrastructure/SSO/IdentityProviderInterface.php
907 Bytes
| declare(strict_types=1); | |
| namespace User\Infrastructure\SSO; | |
| use Psr\Http\Message\UriInterface; | |
| use User\Domain\Entities\UserEntity; | |
| use User\Infrastructure\SSO\Exceptions\InvalidCodeException; | |
| interface IdentityProviderInterface | |
| { | |
| /** | |
| * Get name of the identity provider. Will be shown in the UI. | |
| * | |
| * @return string | |
| */ | |
| public function getName(): string; | |
| /** | |
| * Get icon source of the identity provider. Will be shown in the UI. | |
| * @return string | |
| */ | |
| public function getIconSrc(): string; | |
| /** | |
| * Get the URL to redirect to for authentication. | |
| * @return UriInterface | |
| */ | |
| public function getAuthUrl(): UriInterface; | |
| /** | |
| * @param string $code | |
| * @param array $params | |
| * @return UserEntity | |
| * @throws InvalidCodeException | |
| */ | |
| public function getUser(string $code, array $params = []): UserEntity; | |
| } | |