PHP Класс Webiny\Component\OAuth2\Bridge\OAuth2

Наследование: use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getInstance ( string $clientId, string $clientSecret, string $redirectUri, string $certificateFile = '' ) : AbstractOAuth2 Create an instance of an OAuth2 driver.
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

Описание методов

getInstance() статический публичный Метод

Create an instance of an OAuth2 driver.
static public getInstance ( string $clientId, string $clientSecret, string $redirectUri, string $certificateFile = '' ) : AbstractOAuth2
$clientId string Client id.
$clientSecret string Client secret.
$redirectUri string Target url where to redirect after authentication.
$certificateFile string
Результат AbstractOAuth2

getLibrary() статический публичный Метод

Get the name of bridge library which will be used as the driver.
static public getLibrary ( ) : string
Результат string

setLibrary() статический публичный Метод

Change the default library used for the driver.
static public setLibrary ( string $pathToClass )
$pathToClass string Path to the new bridge class. The class must implement \Webiny\Component\OAuth2\Bridge\OAuth2Interface.