Another timeline that clarify the situation.

with @auth.requires_login()

1. User login on app A
2. User follow the link on app B/function_decorated
3. App A try to get data from app B all is working well

Thank you

On Tue, May 17, 2016 at 11:34 AM, Massimiliano <[email protected]> wrote:

> Hello,
>
> I've a system composed of some apps sharing auth on *cas*.
>
> I would like that app A could get json data from app B but it seems not
> possibile if the user doesn't login in each app before.
>
> Jus to to clarify.
>
> Timeline.
>
> 1. User login on app A
> 2. App A try to get data from app B but He got "Insufficient privileges"
> or nothing. It depends from the decorator used.
>
> but if
>
> 1. User login on app A
> 2. User login on app B
> 3. App A try to get data from app B all is working well
>
>
> I tried to decorate le app B controller function with
> @auth.requires_signature()
> setting properly user_signature=True in the URL()
> and I get "Insufficient privileges"
>
> and with
> @auth.requires_login()
> and I get nothing
>
> Is possibile to get what I want?
>
> Thank you
>
> --
> 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