PHP Класс Auth0\JWTAuthBundle\Security\Auth0Service

Автор: german Service that provides access to the Auth0 SDK and JWT validation
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $client_id, string $client_secret, string $domain )
decodeJWT ( $encToken ) : stdClass Decodes the JWT and validate it
getUserProfileByA0UID ( $jwt, $a0UID ) : Symfony\Component\Security\Core\User\User Get the Auth0 User Profile based on the JWT (and validate it).

Описание методов

__construct() публичный метод

public __construct ( string $client_id, string $client_secret, string $domain )
$client_id string
$client_secret string
$domain string

decodeJWT() публичный метод

Decodes the JWT and validate it
public decodeJWT ( $encToken ) : stdClass
Результат stdClass

getUserProfileByA0UID() публичный метод

Get the Auth0 User Profile based on the JWT (and validate it).
public getUserProfileByA0UID ( $jwt, $a0UID ) : Symfony\Component\Security\Core\User\User
Результат Symfony\Component\Security\Core\User\User info as described in https://docs.auth0.com/user-profile