IdToken
- Full name:
\OAuth2\OpenID\ResponseType\IdToken
- This class implements:
\OAuth2\OpenID\ResponseType\IdTokenInterface
Properties
userClaimsStorage
publicKeyStorage
config
encryptionUtil
Methods
__construct
Constructor
public __construct(\OAuth2\OpenID\Storage\UserClaimsInterface $userClaimsStorage, \OAuth2\Storage\PublicKeyInterface $publicKeyStorage, array $config = array(), \OAuth2\Encryption\EncryptionInterface $encryptionUtil = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$userClaimsStorage |
\OAuth2\OpenID\Storage\UserClaimsInterface | |
$publicKeyStorage |
\OAuth2\Storage\PublicKeyInterface | |
$config |
array | |
$encryptionUtil |
\OAuth2\Encryption\EncryptionInterface |
Throws:
getAuthorizeResponse
Parameters:
Parameter | Type | Description |
---|---|---|
$params |
array | |
$userInfo |
null |
createIdToken
Create id token
public createIdToken(string $client_id, mixed $userInfo, mixed $nonce = null, mixed $userClaims = null, mixed $access_token = null): mixed|string
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
string | |
$userInfo |
mixed | |
$nonce |
mixed | |
$userClaims |
mixed | |
$access_token |
mixed |
createAtHash
Parameters:
Parameter | Type | Description |
---|---|---|
$access_token |
mixed | |
$client_id |
null |
encodeToken
Parameters:
Parameter | Type | Description |
---|---|---|
$token |
array | |
$client_id |
null |
getUserIdAndAuthTime
Parameters:
Parameter | Type | Description |
---|---|---|
$userInfo |
mixed |
Throws:
Automatically generated on 2025-03-18