|
@@ -63,7 +63,7 @@ class Discoverer {
|
63
|
63
|
|
64
|
64
|
private $server = null;
|
65
|
65
|
private $servers = array();
|
66
|
|
- private $delegate = '';
|
|
66
|
+ private $claimedId = '';
|
67
|
67
|
private $identity = '';
|
68
|
68
|
private $version = 1;
|
69
|
69
|
|
|
@@ -88,7 +88,7 @@ class Discoverer {
|
88
|
88
|
}
|
89
|
89
|
|
90
|
90
|
public function getDelegate() {
|
91
|
|
- return $this->delegate;
|
|
91
|
+ return $this->claimedId;
|
92
|
92
|
}
|
93
|
93
|
|
94
|
94
|
public function getIdentity() {
|
|
@@ -154,7 +154,7 @@ class Discoverer {
|
154
|
154
|
private function discover($uri) {
|
155
|
155
|
Logger::log('Performing discovery for %s', $uri);
|
156
|
156
|
|
157
|
|
- $this->delegate = $uri;
|
|
157
|
+ $this->claimedId = $uri;
|
158
|
158
|
$this->server = null;
|
159
|
159
|
|
160
|
160
|
if (!$this->yadisDiscover($uri)) {
|
|
@@ -220,9 +220,9 @@ class Discoverer {
|
220
|
220
|
if ((String) $type == 'http://specs.openid.net/auth/2.0/server') {
|
221
|
221
|
$this->version = 2;
|
222
|
222
|
$this->server = (String) $service->URI;
|
223
|
|
- $this->identity = $this->delegate = 'http://specs.openid.net/auth/2.0/identifier_select';
|
|
223
|
+ $this->identity = 'http://specs.openid.net/auth/2.0/identifier_select';
|
224
|
224
|
$this->servers[] = $server = new Server($this->server, 2);
|
225
|
|
- Logger::log('OpenID EP found (server). Server: %s, identity: %s, delegate: %s', $this->server, $this->identity, $this->delegate);
|
|
225
|
+ Logger::log('OpenID EP found (server). Server: %s, identity: %s, claimed id: %s', $this->server, $this->identity, $this->claimedId);
|
226
|
226
|
$found = true;
|
227
|
227
|
} else if ((String) $type == 'http://specs.openid.net/auth/2.0/signon') {
|
228
|
228
|
$this->version = 2;
|
|
@@ -234,9 +234,8 @@ class Discoverer {
|
234
|
234
|
} else {
|
235
|
235
|
$this->identity = 'http://specs.openid.net/auth/2.0/identifier_select';
|
236
|
236
|
}
|
237
|
|
- $this->delegate = 'http://specs.openid.net/auth/2.0/identifier_select';
|
238
|
237
|
|
239
|
|
- Logger::log('OpenID EP found (signon). Server: %s, identity: %s, delegate: %s', $this->server, $this->identity, $this->delegate);
|
|
238
|
+ Logger::log('OpenID EP found (signon). Server: %s, identity: %s, claimed id: %s', $this->server, $this->identity, $this->claimedId);
|
240
|
239
|
$found = true;
|
241
|
240
|
} else {
|
242
|
241
|
$services[] = (String) $type;
|
|
@@ -344,18 +343,18 @@ class Discoverer {
|
344
|
343
|
$this->servers[] = new Server($this->server, 2);
|
345
|
344
|
|
346
|
345
|
if (isset($links['openid2.local_id'])) {
|
347
|
|
- $this->delegate = $links['openid2.local_id'];
|
|
346
|
+ $this->identity = $links['openid2.local_id'];
|
348
|
347
|
}
|
349
|
|
- Logger::log('OpenID EP found. Server: %s, identity: %s, delegate: %s', $this->server, $this->identity, $this->delegate);
|
|
348
|
+ Logger::log('OpenID EP found. Server: %s, identity: %s, claimed id: %s', $this->server, $this->identity, $this->claimedId);
|
350
|
349
|
} else if (isset($links['openid.server'])) {
|
351
|
350
|
$this->version = 1;
|
352
|
351
|
$this->server = $links['openid.server'];
|
353
|
352
|
$this->servers[] = new Server($this->server, 2);
|
354
|
353
|
|
355
|
354
|
if (isset($links['openid.delegate'])) {
|
356
|
|
- $this->delegate = $links['openid.delegate'];
|
|
355
|
+ $this->claimedId = $links['openid.claimedId'];
|
357
|
356
|
}
|
358
|
|
- Logger::log('OpenID EP found. Server: %s, identity: %s, delegate: %s', $this->server, $this->identity, $this->delegate);
|
|
357
|
+ Logger::log('OpenID EP found. Server: %s, identity: %s, claimed id: %s', $this->server, $this->identity, $this->claimedId);
|
359
|
358
|
}
|
360
|
359
|
}
|
361
|
360
|
|