PHP Class Flarum\Forum\Controller\AbstractOAuth2Controller

Inheritance: implements Flarum\Http\Controller\ControllerInterface
Afficher le fichier Open project: flarum/core

Protected Properties

Свойство Type Description
$authResponse Flarum\Forum\AuthenticationResponseFactory
$provider League\OAuth2\Client\Provider\AbstractProvider
$token string The access token, once obtained.

Méthodes publiques

Méthode Description
__construct ( AuthenticationResponseFactory $authResponse )
handle ( Psr\Http\Message\ServerRequestInterface $request ) : Psr\Http\Message\ResponseInterface | RedirectResponse

Méthodes protégées

Méthode Description
getAuthorizationUrlOptions ( ) : array
getIdentification ( League\OAuth2\Client\Provider\ResourceOwnerInterface $resourceOwner ) : array
getProvider ( string $redirectUri ) : League\OAuth2\Client\Provider\AbstractProvider
getSuggestions ( League\OAuth2\Client\Provider\ResourceOwnerInterface $resourceOwner ) : array

Method Details

__construct() public méthode

public __construct ( AuthenticationResponseFactory $authResponse )
$authResponse Flarum\Forum\AuthenticationResponseFactory

getAuthorizationUrlOptions() abstract protected méthode

abstract protected getAuthorizationUrlOptions ( ) : array
Résultat array

getIdentification() abstract protected méthode

abstract protected getIdentification ( League\OAuth2\Client\Provider\ResourceOwnerInterface $resourceOwner ) : array
$resourceOwner League\OAuth2\Client\Provider\ResourceOwnerInterface
Résultat array

getProvider() abstract protected méthode

abstract protected getProvider ( string $redirectUri ) : League\OAuth2\Client\Provider\AbstractProvider
$redirectUri string
Résultat League\OAuth2\Client\Provider\AbstractProvider

getSuggestions() abstract protected méthode

abstract protected getSuggestions ( League\OAuth2\Client\Provider\ResourceOwnerInterface $resourceOwner ) : array
$resourceOwner League\OAuth2\Client\Provider\ResourceOwnerInterface
Résultat array

handle() public méthode

public handle ( Psr\Http\Message\ServerRequestInterface $request ) : Psr\Http\Message\ResponseInterface | RedirectResponse
$request Psr\Http\Message\ServerRequestInterface
Résultat Psr\Http\Message\ResponseInterface | Zend\Diactoros\Response\RedirectResponse

Property Details

$authResponse protected_oe property

protected AuthenticationResponseFactory,Flarum\Forum $authResponse
Résultat Flarum\Forum\AuthenticationResponseFactory

$provider protected_oe property

protected AbstractProvider,League\OAuth2\Client\Provider $provider
Résultat League\OAuth2\Client\Provider\AbstractProvider

$token protected_oe property

The access token, once obtained.
protected string $token
Résultat string