Property | Type | Description | |
---|---|---|---|
$provider | Larabros\Elogram\Http\OAuth2\Providers\AdapterInterface | ||
$store | Larabros\Elogram\Http\Sessions\DataStoreInterface |
Method | Description | |
---|---|---|
__construct ( Larabros\Elogram\Http\OAuth2\Providers\AdapterInterface $provider, Larabros\Elogram\Http\Sessions\DataStoreInterface $store ) | Creates an instance of :php:class:RedirectLoginHelper. | |
getAccessToken ( string $code, string $grant = 'authorization_code' ) : League\OAuth2\Client\Token\AccessToken | Validates CSRF and returns the access token. | |
getLoginUrl ( array $options = [] ) : string | Sets CSRF value and returns the login URL. |
Method | Description | |
---|---|---|
getInput ( string $key ) : string | null | Retrieves and returns a value from a GET param. | |
validateCsrf ( ) | Validates any CSRF parameters. |
public __construct ( Larabros\Elogram\Http\OAuth2\Providers\AdapterInterface $provider, Larabros\Elogram\Http\Sessions\DataStoreInterface $store ) | ||
$provider | Larabros\Elogram\Http\OAuth2\Providers\AdapterInterface | |
$store | Larabros\Elogram\Http\Sessions\DataStoreInterface |
public getAccessToken ( string $code, string $grant = 'authorization_code' ) : League\OAuth2\Client\Token\AccessToken | ||
$code | string | |
$grant | string | |
return | League\OAuth2\Client\Token\AccessToken |
public getLoginUrl ( array $options = [] ) : string | ||
$options | array | |
return | string |
protected AdapterInterface,Larabros\Elogram\Http\OAuth2\Providers $provider | ||
return | Larabros\Elogram\Http\OAuth2\Providers\AdapterInterface |