I don't know why but I found that it work with curl but not with wget.

Someone knows why?

When I'm going to advice to my customer's partner a method to access to the
system what I have to say?

Thank you

On Thu, Apr 23, 2015 at 5:11 PM, Massimiliano <[email protected]> wrote:

> I found that is not cas related, it seem that doesn't work neither in a
> basic app.
>
> Has something to do with this issue?
>
> https://github.com/web2py/web2py/issues/621
>
> Thank you
>
> Massimiliano
>
>
> On Thursday, April 23, 2015 at 3:58:33 PM UTC+2, Massimiliano wrote:
>>
>> 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.
>



-- 
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