PHP Класс Auth0\SDK\API\Authentication

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $domain, $client_id = null, $client_secret = null, $guzzleOptions = [] )
authorize_with_accesstoken ( $access_token, $connection, $scope = 'openid', $aditional_params = [] )
authorize_with_ro ( $username, $password, $scope = 'openid', $connection = null, $id_token = null, $device = null )
delegation ( $id_token, $type, $target_client_id, $api_type, $aditional_params = [], $scope = 'openid', $grant_type = 'urn:ietf:params:oauth:grant-type:jwt-bearer' )
email_code_passwordless_verify ( $email, $code, $scope = 'openid' )
email_passwordless_start ( $email, $type, $authParams = [] )
get_access_token ( )
get_authorize_link ( $response_type, $redirect_uri, $connection = null, $state = null, $aditional_params = [] )
get_logout_link ( $returnTo = null, $client_id = null )
get_oauth_client ( $client_secret, $redirect_uri, $extra_params = [] )
get_samlp_link ( $client_id, $connection = '' )
get_samlp_metadata_link ( $client_id )
get_wsfed_link ( $client_id )
get_wsfed_metadata_link ( )
impersonate ( $user_id, $protocol, $impersonator_id, $client_id, $additionalParameters = [] )
oauth_token ( $client_id, $client_secret, $grant_type = 'client_credentials', $code = null, $audience = null, $scope = null )
sms_code_passwordless_verify ( $phone_number, $code, $scope = 'openid' )
sms_passwordless_start ( $phone_number )
tokeninfo ( $id_token )
userinfo ( $access_token )

Защищенные методы

Метод Описание
setApiClient ( )

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

__construct() публичный Метод

public __construct ( $domain, $client_id = null, $client_secret = null, $guzzleOptions = [] )

authorize_with_accesstoken() публичный Метод

public authorize_with_accesstoken ( $access_token, $connection, $scope = 'openid', $aditional_params = [] )

authorize_with_ro() публичный Метод

public authorize_with_ro ( $username, $password, $scope = 'openid', $connection = null, $id_token = null, $device = null )

delegation() публичный Метод

public delegation ( $id_token, $type, $target_client_id, $api_type, $aditional_params = [], $scope = 'openid', $grant_type = 'urn:ietf:params:oauth:grant-type:jwt-bearer' )

email_code_passwordless_verify() публичный Метод

public email_code_passwordless_verify ( $email, $code, $scope = 'openid' )

email_passwordless_start() публичный Метод

public email_passwordless_start ( $email, $type, $authParams = [] )

get_access_token() публичный Метод

public get_access_token ( )

get_oauth_client() публичный Метод

public get_oauth_client ( $client_secret, $redirect_uri, $extra_params = [] )

impersonate() публичный Метод

public impersonate ( $user_id, $protocol, $impersonator_id, $client_id, $additionalParameters = [] )

oauth_token() публичный Метод

public oauth_token ( $client_id, $client_secret, $grant_type = 'client_credentials', $code = null, $audience = null, $scope = null )

setApiClient() защищенный Метод

protected setApiClient ( )

sms_code_passwordless_verify() публичный Метод

public sms_code_passwordless_verify ( $phone_number, $code, $scope = 'openid' )

sms_passwordless_start() публичный Метод

public sms_passwordless_start ( $phone_number )

tokeninfo() публичный Метод

public tokeninfo ( $id_token )

userinfo() публичный Метод

public userinfo ( $access_token )