Auth0-PHP

ClientAssertionGenerator
in package

FinalYes

Table of Contents

Constants

CONST_SUPPORTED_ALGORITHMS  : array<string|int, string> = [\Auth0\SDK\Token::ALGO_RS256, \Auth0\SDK\Token...
Supported signing algorithms.

Methods

create()  : Generator
Create a JWT client assertion.

Constants

CONST_SUPPORTED_ALGORITHMS

Supported signing algorithms.

public array<string|int, string> CONST_SUPPORTED_ALGORITHMS = [\Auth0\SDK\Token::ALGO_RS256, \Auth0\SDK\Token::ALGO_RS384]

Methods

create()

Create a JWT client assertion.

public static create(string $domain, string $clientId, OpenSSLAsymmetricKey|string $signingKey[, string $signingAlgorithm = Token::ALGO_RS256 ]) : Generator
Parameters
$domain : string

The Auth0 domain to use.

$clientId : string

The Auth0 client ID to use.

$signingKey : OpenSSLAsymmetricKey|string

The signing key to use.

$signingAlgorithm : string = Token::ALGO_RS256

The signing algorithm to use.

Tags
throws
InvalidArgumentException

If an invalid signing algorithm is provided.

TokenException

If an error occurs during signing.

Return values
Generator

A configured instance of the Token Generator.

On this page

Search results