Changes between Version 10 and Version 11 of CookBookShortcutsOpenIDAuthentication


Ignore:
Timestamp:
Apr 13, 2007, 7:19:13 AM (18 years ago)
Author:
Noah Slater <nslater@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookShortcutsOpenIDAuthentication

    v10 v11  
    2121}}}
    2222
     23Using global variables like above is '''bad''' practice. Try to avoid this if possible. -- NoahSlater
     24
    2325Another approach is to use the main Django database:
    2426
     
    3436
    3537You'll need one view to allow the user to specify an OpenID URL to authenticate.  The following method uses another settings.py addition called SITE_TOP_URL.  (If there's a better way to get or specify this information, I'd like to know.)
     38
     39You can use the ''sites'' module to get the current host name and construct a URL from there. -- NoahSlater
    3640
    3741{{{
Back to Top