Метод | Описание | |
---|---|---|
getInstance ( string $clientId, string $clientSecret, string $redirectUri, string $certificateFile = '' ) : |
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. |
static public getInstance ( string $clientId, string $clientSecret, string $redirectUri, string $certificateFile = '' ) : |
||
$clientId | string | Client id. |
$clientSecret | string | Client secret. |
$redirectUri | string | Target url where to redirect after authentication. |
$certificateFile | string | |
Результат |
static public getLibrary ( ) : string | ||
Результат | string |
static public setLibrary ( string $pathToClass ) | ||
$pathToClass | string | Path to the new bridge class. The class must implement \Webiny\Component\OAuth2\Bridge\OAuth2Interface. |