public function auth(Secret $secret) { $endpoint = $secret->getAuthUrl(); $ident = $this->getIdentityService($endpoint); $this->access = $ident->tokens($secret); return $this->access; }
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); }