TokenEndpoint
in package
Token Endpoint
Table of Contents
- __construct() : TokenEndpoint
- creates a new TokenEndpoint instance
- process() : mixed
- process a token request
- getAuthorizationHeader() : mixed
- Get header Authorization
- getBasicAuthCredential() : mixed
- Get username e password of Basic Authentication
- makeIdToken() : string
- Make ID Token
Methods
__construct()
creates a new TokenEndpoint instance
public
__construct(array<string|int, mixed> $config, Database $database) : TokenEndpoint
Parameters
- $config : array<string|int, mixed>
-
base configuration
- $database : Database
-
database instance
Tags
Return values
TokenEndpoint —process()
process a token request
public
process() : mixed
Tags
Return values
mixed —getAuthorizationHeader()
Get header Authorization
private
getAuthorizationHeader() : mixed
Return values
mixed —getBasicAuthCredential()
Get username e password of Basic Authentication
private
getBasicAuthCredential() : mixed
Return values
mixed —makeIdToken()
Make ID Token
private
makeIdToken(string $subject, string $exp_time, string $iss, string $aud, string $nonce, string $jwk_pem) : string
Parameters
- $subject : string
- $exp_time : string
- $iss : string
- $aud : string
- $nonce : string
- $jwk_pem : string