Exemple #1
0
 public function auth(Secret $secret)
 {
     $endpoint = $secret->getAuthUrl();
     $ident = $this->getIdentityService($endpoint);
     $this->access = $ident->tokens($secret);
     return $this->access;
 }
Exemple #2
0
 public function testNoSchemeUrl()
 {
     $info = parse_url(TEST_IDENTITY_ENDPOINT);
     $s = new Secret();
     $s->setAuthUrl("//" . $info['host']);
     $url = $s->getAuthUrl();
     $this->assertEquals(TEST_IDENTITY_ENDPOINT, $url);
 }