$ curl http://localhost:8080/\
api/v1/whoami
{"anonymous": ""}
$ curl http://localhost:8080/\
api/v1/whoami \
-u user1:pass1
{"userid": "user1"}





urls = (
"/openid",
"web.webopenid.host",
"/api/v1/loginoid",
"poemtube.api.v1.LogInOid",
# ...
)
w = webopenid
class LogInOid( object ):
def GET( self ):
if w.status():
return "Logged in."
web.header( #...
return w.form('/openid')
def authenticate_user( db ):
oid = webopenid.status()
if oid:
return oid
# ...

| Videos | youtube.com/user/ajbalaam |
|---|---|
| @andybalaam | |
| Blog | artificialworlds.net/blog |
| Projects | artificialworlds.net |