Simple OAuth2 Response implementation.
◆ getAccessToken()
Samy\OAuth2\Response::getAccessToken |
( |
| ) |
|
◆ getBody()
Samy\OAuth2\Response::getBody |
( |
| ) |
|
Overwrite Psr7 getBody.
- Returns
- StreamInterface Returns the body as a stream.
◆ getExpiresIn()
Samy\OAuth2\Response::getExpiresIn |
( |
| ) |
|
◆ getRefreshToken()
Samy\OAuth2\Response::getRefreshToken |
( |
| ) |
|
◆ getScope()
Samy\OAuth2\Response::getScope |
( |
| ) |
|
◆ getTokenType()
Samy\OAuth2\Response::getTokenType |
( |
| ) |
|
◆ withAccessToken()
Samy\OAuth2\Response::withAccessToken |
( |
string |
$AccessToken | ) |
|
Return an instance with provided access token.
- Parameters
-
[in] | string | $AccessToken | Access token |
- Returns
- static
Implements Samy\OAuth2\ResponseInterface.
◆ withBody()
Samy\OAuth2\Response::withBody |
( |
|
$StreamInterface | ) |
|
Overwrite Psr7 withBody.
- Parameters
-
[in] | mixed | $StreamInterface | Body. |
- Returns
- static
◆ withExpiresIn()
Samy\OAuth2\Response::withExpiresIn |
( |
int |
$ExpiresIn | ) |
|
Return an instance with provided token duration.
- Parameters
-
[in] | int | $ExpiresIn | Token duration |
- Returns
- static
Implements Samy\OAuth2\ResponseInterface.
◆ withRefreshToken()
Samy\OAuth2\Response::withRefreshToken |
( |
string |
$RefreshToken | ) |
|
Return an instance with provided refresh token.
- Parameters
-
[in] | string | $RefreshToken | Refresh token |
- Returns
- static
Implements Samy\OAuth2\ResponseInterface.
◆ withScope()
Samy\OAuth2\Response::withScope |
( |
string |
$Scope | ) |
|
◆ withTokenType()
Samy\OAuth2\Response::withTokenType |
( |
string |
$TokenType | ) |
|
◆ $access_token
Samy\OAuth2\Response::$access_token = "" |
|
protected |
◆ $expires_in
Samy\OAuth2\Response::$expires_in = 0 |
|
protected |
◆ $refresh_token
Samy\OAuth2\Response::$refresh_token = "" |
|
protected |
◆ $scope
Samy\OAuth2\Response::$scope = "" |
|
protected |
◆ $token_type
The documentation for this class was generated from the following file: