Hi,

I've a number of applications that use cas to authenticate.

Now I need to allow an automatic download for an external integration, but
I don't' find a way to make it work.

I other word I need that someone download a csv file via wget o somthing
like that.

I tried:

in db.py:

auth = Auth(db, cas_provider=myconf.take('auth.cas_provider'))
auth.settings.allow_basic_login = True
auth.define_tables(username=True)
auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username','profile']

and in controller:

@auth.requires_login()
def give_me_time():
    import time
    return time.ctime()

Doen't work. I get the login page

I Also tried, always from the book:

def give_me_time():
    import time
    auth.basic()
    if auth.user:
        return time.ctime()
    else:
        return 'Not authorized'


I get always:
 Not authorized

I there a way to do what I need?

Thank you
-- 
Massimiliano

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to