PHP 클래스 Flarum\Forum\Controller\AbstractOAuth2Controller

상속: implements Flarum\Http\Controller\ControllerInterface
파일 보기 프로젝트 열기: flarum/core

보호된 프로퍼티들

프로퍼티 타입 설명
$authResponse Flarum\Forum\AuthenticationResponseFactory
$provider League\OAuth2\Client\Provider\AbstractProvider
$token string The access token, once obtained.

공개 메소드들

메소드 설명
__construct ( AuthenticationResponseFactory $authResponse )
handle ( Psr\Http\Message\ServerRequestInterface $request ) : Psr\Http\Message\ResponseInterface | RedirectResponse

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

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

getAuthorizationUrlOptions() 추상적인 보호된 메소드

abstract protected getAuthorizationUrlOptions ( ) : array
리턴 array

getIdentification() 추상적인 보호된 메소드

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

getProvider() 추상적인 보호된 메소드

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

getSuggestions() 추상적인 보호된 메소드

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

handle() 공개 메소드

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

프로퍼티 상세

$authResponse 보호되어 있는 프로퍼티

protected AuthenticationResponseFactory,Flarum\Forum $authResponse
리턴 Flarum\Forum\AuthenticationResponseFactory

$provider 보호되어 있는 프로퍼티

protected AbstractProvider,League\OAuth2\Client\Provider $provider
리턴 League\OAuth2\Client\Provider\AbstractProvider

$token 보호되어 있는 프로퍼티

The access token, once obtained.
protected string $token
리턴 string