PHP Class Auth0\JWTAuthBundle\Security\Auth0Service

Author: german Service that provides access to the Auth0 SDK and JWT validation
Afficher le fichier Open project: auth0/jwt-auth-bundle

Méthodes publiques

Méthode Description
__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).

Method Details

__construct() public méthode

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

decodeJWT() public méthode

Decodes the JWT and validate it
public decodeJWT ( $encToken ) : stdClass
Résultat stdClass

getUserProfileByA0UID() public méthode

Get the Auth0 User Profile based on the JWT (and validate it).
public getUserProfileByA0UID ( $jwt, $a0UID ) : Symfony\Component\Security\Core\User\User
Résultat Symfony\Component\Security\Core\User\User info as described in https://docs.auth0.com/user-profile