PHP Class Auth0\SDK\API\Helpers\TokenGenerator

Mostrar archivo Open project: auth0/auth0-php Class Usage Examples

Protected Properties

Property Type Description
$client_id
$client_secret

Public Methods

Method Description
__construct ( $credentials ) TokenGenerator Constructor.
generate ( $scopes, $lifetime = 36000 )

Protected Methods

Method Description
bstr2bin ( $input )
str2hex ( $input )

Method Details

__construct() public method

Configuration: - client_id (String) Required. The id of the application, you can get this in the auth0 console - client_secret (String) Required. The application secret, same comment as above
public __construct ( $credentials )

bstr2bin() protected method

protected bstr2bin ( $input )

generate() public method

public generate ( $scopes, $lifetime = 36000 )

str2hex() protected method

protected str2hex ( $input )

Property Details

$client_id protected_oe property

protected $client_id

$client_secret protected_oe property

protected $client_secret