summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <dag@janrain.com>2008-06-03 23:50:26 +0000
committertailor <dag@janrain.com>2008-06-03 23:50:26 +0000
commitc4f6fa72b6771e1e8c392b341145dfa953cb0dca (patch)
tree4beb56ba37fdfdfd83668020b4cf01ff34664ca2 /Auth
parenteaa35fae09ba7ae0fecafb1914f08f23a2a0fb82 (diff)
downloadphp-openid-c4f6fa72b6771e1e8c392b341145dfa953cb0dca.zip
php-openid-c4f6fa72b6771e1e8c392b341145dfa953cb0dca.tar.gz
php-openid-c4f6fa72b6771e1e8c392b341145dfa953cb0dca.tar.bz2
[project @ Add comment for Consumer::Response describing display_identifier and identity_url]
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Consumer.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index 2629909..2ec19fc 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -1962,6 +1962,23 @@ class Auth_OpenID_ConsumerResponse {
}
}
+ /**
+ * Return the display identifier for this response.
+ *
+ * The display identifier is related to the Claimed Identifier, but the
+ * two are not always identical. The display identifier is something the
+ * user should recognize as what they entered, whereas the response's
+ * claimed identifier (in the identity_url attribute) may have extra
+ * information for better persistence.
+ *
+ * URLs will be stripped of their fragments for display. XRIs will
+ * display the human-readable identifier (i-name) instead of the
+ * persistent identifier (i-number).
+ *
+ * Use the display identifier in your user interface. Use
+ * identity_url for querying your database or authorization server.
+ *
+ */
function getDisplayIdentifier()
{
if ($this->endpoint !== null) {