PHP Class Auth0\JWTAuthBundle\Security\Auth0Service

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

Public Methods

Method 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 method

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

decodeJWT() public method

Decodes the JWT and validate it
public decodeJWT ( $encToken ) : stdClass
return stdClass

getUserProfileByA0UID() public method

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