web.web.webopenid

Package web :: Package web :: Module webopenid |
[hide private]
[frames] | no frames]

# Module webopenid

source code

openid.py: an openid library for web.py

Notes:

- This will create a file called .openid_secret_key in the current directory with your secret key in it. If someone has access to this file they can log in as any user. And if the app can't find this file for any reason (e.g. you moved the app somewhere else) then each currently logged in user will get logged out.
- State must be maintained through the entire auth process -- this means that if you have multiple web.py processes serving one set of URLs or if you restart your app often then log ins will fail. You have to replace sessions and store for things to work.
- We set cookies starting with "openid_".

Classes | [hide private]
| host

Functions | [hide private]
_secret() | source code
_hmac(identity_url) | source code
_random_session() | source code
status() | source code
form(openid_loc) | source code
logout() | source code

Variables | [hide private]
| sessions = `{}`
| store = `openid.store.memstore.MemoryStore()`