summaryrefslogtreecommitdiffstats
path: root/examples/consumer/finish_auth.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2008-06-06 18:26:52 +0000
committertailor <cygnus@janrain.com>2008-06-06 18:26:52 +0000
commit2456aa518d9b4b3774aa71111c1edde0dac25808 (patch)
treeaeb80a04853c4d199ec23c15c3f09d0fe31e1716 /examples/consumer/finish_auth.php
parent1ca9541dc5b2ef6681354c23ea8a07a122a94a14 (diff)
downloadphp-openid-2456aa518d9b4b3774aa71111c1edde0dac25808.zip
php-openid-2456aa518d9b4b3774aa71111c1edde0dac25808.tar.gz
php-openid-2456aa518d9b4b3774aa71111c1edde0dac25808.tar.bz2
[project @ demo RP: indentation]
Diffstat (limited to 'examples/consumer/finish_auth.php')
-rw-r--r--examples/consumer/finish_auth.php50
1 files changed, 25 insertions, 25 deletions
diff --git a/examples/consumer/finish_auth.php b/examples/consumer/finish_auth.php
index 149c6ac..b19a665 100644
--- a/examples/consumer/finish_auth.php
+++ b/examples/consumer/finish_auth.php
@@ -60,33 +60,33 @@ function run() {
$pape_resp = Auth_OpenID_PAPE_Response::fromSuccessResponse($response);
if ($pape_resp) {
- if ($pape_resp->auth_policies) {
- $success .= "<p>The following PAPE policies affected the authentication:</p><ul>";
-
- foreach ($pape_resp->auth_policies as $uri) {
- $escaped_uri = escape($uri);
- $success .= "<li><tt>$escaped_uri</tt></li>";
- }
-
- $success .= "</ul>";
- } else {
- $success .= "<p>No PAPE policies affected the authentication.</p>";
- }
-
- if ($pape_resp->auth_age) {
- $age = escape($pape_resp->auth_age);
- $success .= "<p>The authentication age returned by the " .
- "server is: <tt>".$age."</tt></p>";
- }
-
- if ($pape_resp->nist_auth_level) {
- $auth_level = escape($pape_resp->nist_auth_level);
- $success .= "<p>The NIST auth level returned by the " .
- "server is: <tt>".$auth_level."</tt></p>";
- }
+ if ($pape_resp->auth_policies) {
+ $success .= "<p>The following PAPE policies affected the authentication:</p><ul>";
+
+ foreach ($pape_resp->auth_policies as $uri) {
+ $escaped_uri = escape($uri);
+ $success .= "<li><tt>$escaped_uri</tt></li>";
+ }
+
+ $success .= "</ul>";
+ } else {
+ $success .= "<p>No PAPE policies affected the authentication.</p>";
+ }
+
+ if ($pape_resp->auth_age) {
+ $age = escape($pape_resp->auth_age);
+ $success .= "<p>The authentication age returned by the " .
+ "server is: <tt>".$age."</tt></p>";
+ }
+
+ if ($pape_resp->nist_auth_level) {
+ $auth_level = escape($pape_resp->nist_auth_level);
+ $success .= "<p>The NIST auth level returned by the " .
+ "server is: <tt>".$auth_level."</tt></p>";
+ }
} else {
- $success .= "<p>No PAPE response was sent by the provider.</p>";
+ $success .= "<p>No PAPE response was sent by the provider.</p>";
}
}