Larabros\Elogram\Helpers\RedirectLoginHelper¶
-
class
RedirectLoginHelper
¶ RedirectLoginHelper
-
property
provider
¶ protected AdapterInterface
-
property
store
¶ protected DataStoreInterface
-
__construct
(AdapterInterface $provider, DataStoreInterface $store)¶ Creates an instance of
RedirectLoginHelper
.Parameters: - $provider (AdapterInterface) –
- $store (DataStoreInterface) –
-
getLoginUrl
($options =[])¶ Sets CSRF value and returns the login URL.
Parameters: - $options (array) –
Returns: string
-
getAccessToken
($code, $grant = 'authorization_code')¶ Validates CSRF and returns the access token.
Parameters: - $code (string) –
- $grant (string) –
Returns: AccessToken
-
validateCsrf
()¶ Validates any CSRF parameters.
-
getInput
($key)¶ Retrieves and returns a value from a GET param.
Parameters: - $key (string) –
Returns: string|null
-
property