Advertise sreg
authorAymeric Augustin <aymeric.augustin@m4x.org>
Wed, 29 Oct 2008 21:11:27 +0000 (22:11 +0100)
committerAymeric Augustin <aymeric.augustin@m4x.org>
Wed, 29 Oct 2008 21:14:00 +0000 (22:14 +0100)
modules/openid.php
templates/openid/user_xrds.tpl

index 067e0a0..66ad7e2 100644 (file)
@@ -186,6 +186,7 @@ class OpenidModule extends PLModule
         // Set variables
         $page->assign('type2', Auth_OpenID_TYPE_2_0);
         $page->assign('type1', Auth_OpenID_TYPE_1_1);
+        $page->assign('sreg', Auth_OpenID_SREG_URI);
         $page->assign('provider', get_openid_url());
         $page->assign('local_id', $user->hruid);
     }
index eff0fc4..323f515 100644 (file)
@@ -6,11 +6,13 @@
   <XRD>
     <Service priority="10">
       <Type>{$type2}</Type>
+      <Type>{$sreg}</Type>
       <URI>{$provider}</URI>
       <LocalID>{$local_id}</LocalID>
     </Service>
     <Service priority="20">
       <Type>{$type1}</Type>
+      <Type>{$sreg}</Type>
       <URI>{$provider}</URI>
       <openid:Delegate>{$local_id}</openid:Delegate>
     </Service>