public function authorize_with_accesstoken(
        $access_token,
        $connection,
        $scope = 'openid',
        array $additional_params = []
    )
    {
        $data = array_merge(
            $additional_params,
            [
                'client_id' => $this->client_id,
                'access_token' => $access_token,
                'connection' => $connection,
                'scope' => $scope,
            ]
        );

        return $this->apiClient->post()
            ->oauth()
            ->access_token()
            ->withHeader(new ContentType('application/json'))
            ->withBody(json_encode($data))
            ->call();
    }
public function authorize_with_accesstoken(
        $access_token,
        $connection,
        $scope = 'openid',
        array $additional_params = []
    )
    {
        $data = array_merge(
            $additional_params,
            [
                'client_id' => $this->client_id,
                'access_token' => $access_token,
                'connection' => $connection,
                'scope' => $scope,
            ]
        );

        return $this->apiClient->post()
            ->oauth()
            ->access_token()
            ->withHeader(new ContentType('application/json'))
            ->withBody(json_encode($data))
            ->call();
    }
public function authorize_with_accesstoken ( $ access_token , $ connection , $ scope = 'openid' , array $ additional_params = [ ] ) { $ data = array_merge ( $ additional_params , [ 'client_id' => $ this -> client_id , 'access_token' => $ access_token , 'connection' => $ connection , 'scope' => $ scope , ] ) ; return $ this -> apiClient -> post ( ) -> oauth ( ) -> access_token ( ) -> withHeader ( new ContentType ( 'application/json' ) ) -> withBody ( json_encode ( $ data ) ) -> call ( ) ; }
Authorize using an access token

@deprecated - 5.1.1, This feature is disabled by default for new tenants as of 8 June
2017. Open the browser to do social authentication instead, which is
what Google and Facebook are recommending.

@param string $access_token
@param string $connection
@param string $scope
@param array  $additional_params

@return mixed

@see https://auth0.com/docs/api/authentication#social-with-provider-s-access-token
@see https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html
@see https://auth0.com/docs/api-auth/intro

@codeCoverageIgnore - Deprecated
Authorize using an access token