PHP Class Flarum\Forum\Controller\AbstractOAuth2Controller

Inheritance: implements Flarum\Http\Controller\ControllerInterface
Datei anzeigen Open project: flarum/core

Protected Properties

Property Type Description
$authResponse Flarum\Forum\AuthenticationResponseFactory
$provider League\OAuth2\Client\Provider\AbstractProvider
$token string The access token, once obtained.

Public Methods

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

Protected Methods

Method 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 method

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

getAuthorizationUrlOptions() abstract protected method

abstract protected getAuthorizationUrlOptions ( ) : array
return array

getIdentification() abstract protected method

abstract protected getIdentification ( League\OAuth2\Client\Provider\ResourceOwnerInterface $resourceOwner ) : array
$resourceOwner League\OAuth2\Client\Provider\ResourceOwnerInterface
return array

getProvider() abstract protected method

abstract protected getProvider ( string $redirectUri ) : League\OAuth2\Client\Provider\AbstractProvider
$redirectUri string
return League\OAuth2\Client\Provider\AbstractProvider

getSuggestions() abstract protected method

abstract protected getSuggestions ( League\OAuth2\Client\Provider\ResourceOwnerInterface $resourceOwner ) : array
$resourceOwner League\OAuth2\Client\Provider\ResourceOwnerInterface
return array

handle() public method

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

Property Details

$authResponse protected_oe property

protected AuthenticationResponseFactory,Flarum\Forum $authResponse
return Flarum\Forum\AuthenticationResponseFactory

$provider protected_oe property

protected AbstractProvider,League\OAuth2\Client\Provider $provider
return League\OAuth2\Client\Provider\AbstractProvider

$token protected_oe property

The access token, once obtained.
protected string $token
return string