Improvements to OAuth and OpenID modules. Store client app in an environment variable. Add support for more OAuth providers. Fix a cookie parsing bug.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1030524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d63c8ad188
commit
034b527d25
35 changed files with 890 additions and 120 deletions
|
|
@ -216,13 +216,15 @@ def mkproperty(name, l):
|
|||
return property(name, l)
|
||||
|
||||
# Evaluate a property, return a lambda function returning the property
|
||||
# value. The host, user and email properties are configured with the
|
||||
# values from the HTTP request, if any
|
||||
# value. The host, user, realm, nickname and email properties are configured
|
||||
# with the values from the HTTP request, if any.
|
||||
def evalProperty(p):
|
||||
if car(p) == "host":
|
||||
return mkproperty(car(p), lambda: hostProperty(cadr(p), environ))
|
||||
if car(p) == "user":
|
||||
return mkproperty(car(p), lambda: userProperty(cadr(p)))
|
||||
if car(p) == "realm":
|
||||
return mkproperty(car(p), lambda: hostProperty(cadr(p), environ))
|
||||
if car(p) == "nickname":
|
||||
return mkproperty(car(p), lambda: nicknameProperty(cadr(p)))
|
||||
if car(p) == "email":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue