summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-08-21 20:05:00 +0000
committertailor <cygnus@janrain.com>2006-08-21 20:05:00 +0000
commit3203c5b58920eba1f4a21715e789b3e690d0f27e (patch)
tree39217eacd18187e2814368ed9f34dab89e894a90 /examples
parent0dbfc9a22220906312f445106f9b4bf30d0a27b1 (diff)
downloadphp-openid-3203c5b58920eba1f4a21715e789b3e690d0f27e.zip
php-openid-3203c5b58920eba1f4a21715e789b3e690d0f27e.tar.gz
php-openid-3203c5b58920eba1f4a21715e789b3e690d0f27e.tar.bz2
[project @ Added message to example consumer to show canonical ID for XRI]
Diffstat (limited to 'examples')
-rw-r--r--examples/consumer/finish_auth.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/consumer/finish_auth.php b/examples/consumer/finish_auth.php
index ea99696..5ddf623 100644
--- a/examples/consumer/finish_auth.php
+++ b/examples/consumer/finish_auth.php
@@ -18,6 +18,11 @@ if ($response->status == Auth_OpenID_CANCEL) {
$success = sprintf('You have successfully verified ' .
'<a href="%s">%s</a> as your identity.',
$esc_identity, $esc_identity);
+
+ if ($response->endpoint->canonicalID) {
+ $success .= ' (XRI CanonicalID: '.$response->endpoint->canonicalID.') ';
+ }
+
$sreg = $response->extensionResponse('sreg');
if (@$sreg['email']) {