summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/Consumer.php
diff options
context:
space:
mode:
authortailor <dag@janrain.com>2008-05-23 22:14:44 +0000
committertailor <dag@janrain.com>2008-05-23 22:14:44 +0000
commitcf2b16b8dc2a030751a2bc0e6c39152ef89dd66a (patch)
tree7e118fd6c6cdc757f157deaf1fb6bf80f2e127b8 /Auth/OpenID/Consumer.php
parent0a58ec4c1d3cc96b249147e4e2554a83ff80f725 (diff)
downloadphp-openid-cf2b16b8dc2a030751a2bc0e6c39152ef89dd66a.zip
php-openid-cf2b16b8dc2a030751a2bc0e6c39152ef89dd66a.tar.gz
php-openid-cf2b16b8dc2a030751a2bc0e6c39152ef89dd66a.tar.bz2
[project @ Add toHTML methods. Server.toFormMarkup passes through form attributes]
Diffstat (limited to 'Auth/OpenID/Consumer.php')
-rw-r--r--Auth/OpenID/Consumer.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index d5fd53f..3619e5a 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -1935,6 +1935,24 @@ class Auth_OpenID_AuthRequest {
$form_tag_attrs);
}
+ /**
+ * Get a complete html document that will autosubmit the request
+ * to the IDP.
+ *
+ * Wraps formMarkup. See the documentation for that function.
+ */
+ function htmlMarkup($realm, $return_to=null, $immediate=false,
+ $form_tag_attrs=null)
+ {
+ $form = $this->formMarkup($realm, $return_to, $immediate,
+ $form_tag_attrs);
+
+ if (Auth_OpenID::isFailure($form)) {
+ return $form;
+ }
+ return Auth_OpenID::autoSubmitHTML($form);
+ }
+
function shouldSendRedirect()
{
return $this->endpoint->compatibilityMode();