PHP Class Auth0\SDK\JWTVerifier

Datei anzeigen Open project: auth0/auth0-php Class Usage Examples

Protected Properties

Property Type Description
$JWKFetcher
$authorized_iss
$client_secret
$suported_algs
$valid_audiences

Public Methods

Method Description
__construct ( $config ) JWTVerifier Constructor.
verifyAndDecode ( $jwt )

Method Details

__construct() public method

Configuration: - cache (CacheHandler) Optional. Should be an instance of CacheHandler that is going to be used to cache the JWKs - suported_algs (Array) Optional. The list of supported algorithms. By default only HS256 - client_secret (String) Required (if supported HS256). The Auth0 application secret. - valid_audiences (Array) Required. The list of audiences accepted by the service. - authorized_iss (Array) Required (if supported RS256). The list of issuers trusted by the service. - guzzle_options (Array) Optional Extra configuration options sent to guzzle.
public __construct ( $config )

verifyAndDecode() public method

public verifyAndDecode ( $jwt )

Property Details

$JWKFetcher protected_oe property

protected $JWKFetcher

$authorized_iss protected_oe property

protected $authorized_iss

$client_secret protected_oe property

protected $client_secret

$suported_algs protected_oe property

protected $suported_algs

$valid_audiences protected_oe property

protected $valid_audiences