i'm starting use web2py. basic 1 page app authenticates users ad based ldap service. need collect other data via rest api calls on behave of user server side of app. i'd cache username , password of user session user doesn't have prompted credentials multiple times. there easy way ?
just wanted close out on in case in future looking @ well.
i able capture password used login adding following db.py
def on_ldap_connect(form):
username = request.vars.username
password = request.vars.password
you can save user/password session variable or secure file use authenticating other services.
auth.settings.login_onaccept.append(on_ldap_connect)
Comments
Post a Comment