Dev OpenID
From Dreamwidth Notes
Revision as of 21:15, 12 September 2008 by Foxfirefey (Talk | contribs)
Contents
- 1 Things To Do
- 2 Associated OpenID code
- 2.1 $LJ::IMGPREFIX/openid-profile.gif
- 2.2 ljconfig.pl
- 2.3 $LJ::SITEROOT/cgi-bin/LJ/OpenID.pm
- 2.4 $LJ::SITEROOT/cgi-bin/Net/OpenID/
- 2.5 $LJ::SITEROOT/cgi-bin/ljdefaults.pl
- 2.6 $LJ::SITEROOT/cgi-bin/talklib.pl
- 2.7 $LJ::SITEROOT/cgi-bin/ljviews.pl
- 2.8 $LJ::SITEROOT/cgi-bin/ljfeed.pl
- 2.9 $LJ::SITEROOT/cgi-bin/Apache/LiveJournal/Interface/ElsewhereInfo.pm
- 2.10 $LJ::SITEROOT/cgi-bin/LJ/ExternalSite.pm
Things To Do
- I&I: Separate OpenID identities for purposes of comment screening, etc
- I&I: Improve OpenID identity friending
- Allow LJ accounts to associate an OpenID
- Allow OpenID accounts to upgrade to a regular account
- Start requesting email and nick information, etc, from the provider when logging in to automatically fill fields
- The OpenID library has been upgraded to 2.0: http://code.sixapart.com/trac/openid/ and http://code.sixapart.com/svn/openid/ . We'll need to make sure our end is updated to this library and functioning.
- Should maintainers be able to authenticate as a community's OpenID?
Associated OpenID code
$LJ::IMGPREFIX/openid-profile.gif
This will get you the wee little OpenID profile icon.
ljconfig.pl
Configuration variables that enable or disable server and consumer support.
-
$OPENID_SERVER
-
$OPENID_CONSUMER
$LJ::SITEROOT/cgi-bin/LJ/OpenID.pm
$LJ::SITEROOT/cgi-bin/Net/OpenID/
$LJ::SITEROOT/cgi-bin/ljdefaults.pl
- Sets the location of the OpenID server to
$LJ::SITEROOT/openid/server.bml
if$OPENID_SERVER
is set to 1.
$LJ::SITEROOT/cgi-bin/talklib.pl
$LJ::SITEROOT/cgi-bin/ljviews.pl
Appears to put the OpenID autodiscovery information in the head:
$lastn_page{'head'} .= $u->openid_tags;
$LJ::SITEROOT/cgi-bin/ljfeed.pl
create_view_foaf
The function create_view_foaf
sets OpenID attributes for the user, but not a community:
$ret .= " <foaf:openid rdf:resource=\"" . $u->journal_base . "/\" />\n" unless $comm;
create_view_yadis
The function create_view_yadis
enables YADIS capability discovery.