get_access_token() public method

public get_access_token ( )
コード例 #1
0
ファイル: AuthApiTest.php プロジェクト: auth0/auth0-php
 public function testOauthToken()
 {
     $env = $this->getEnv();
     $api = new Authentication($env['DOMAIN'], $env['GLOBAL_CLIENT_ID'], $env['GLOBAL_CLIENT_SECRET']);
     $token = $api->get_access_token();
     $this->assertArrayHasKey('access_token', $token);
     $this->assertArrayHasKey('token_type', $token);
     $this->assertEquals('bearer', strtolower($token['token_type']));
 }