SSOTokenResponse
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $accessToken : string
- An access token that can be exchanged for a user profile. Access tokens are short-lived — see the `expires_in` field for the exact lifetime.
- $expiresIn : int
- The lifetime of the access token in seconds.
- $oauthTokens : SSOTokenResponseOAuthToken|null
- OAuth tokens issued by the identity provider, if available.
- $profile : Profile
- The user profile returned by the identity provider.
- $tokenType : string
- The type of token issued.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$accessToken
An access token that can be exchanged for a user profile. Access tokens are short-lived — see the `expires_in` field for the exact lifetime.
public
string
$accessToken
$expiresIn
The lifetime of the access token in seconds.
public
int
$expiresIn
$oauthTokens
OAuth tokens issued by the identity provider, if available.
public
SSOTokenResponseOAuthToken|null
$oauthTokens
= null
$profile
The user profile returned by the identity provider.
public
Profile
$profile
$tokenType
The type of token issued.
public
string
$tokenType
Methods
__construct()
public
__construct(string $tokenType, string $accessToken, int $expiresIn, Profile $profile[, SSOTokenResponseOAuthToken|null $oauthTokens = null ]) : mixed
Parameters
- $tokenType : string
- $accessToken : string
- $expiresIn : int
- $profile : Profile
- $oauthTokens : SSOTokenResponseOAuthToken|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>