On deeper inspection, the logout issue is strange, and related to the redis 
sessions.

auth.settings.login_form.cas_logout_url


is the right URL.  If I visit it independently in a browser it works as 
expected. 

However, there are no auth_users created in the cas_consumer app when redis 
sessions are used.  They are created when redis sessions are not used.

Is that expected behavior?  It strikes me as a misconfiguration issue.

On Friday, August 18, 2017 at 12:22:40 AM UTC-5, Mark Graves wrote:
>
> Hey everyone,  
>
> Question / potential bug(s):
>
> I created the following to reproduce:
>
> https://bitbucket.org/MarkGraves/web2py_cas
>
> Basically, when I run that setup.sh, it sets up two apps and installs 
> redis in virtual environments, copies in web2py, and replaces db.py with 
> the one in the main repo.
>
> Its the only file that has changed from a default web2py setup.
>
> The odd thing is that when I run these apps, the consumer app sets 
> response.session_file to None, and has a response.session_filename
>
> The file does not exist after a single request.  It may at some point 
> during the request (easy enough to check).
>
> It does not appear to have the same effect on the cas_provider app, at 
> least via the output (neither is a key in response object)
>
> I think this is around 883 but not sure, in 
> https://github.com/web2py/web2py/blob/master/gluon/globals.py
>
> There are distinctly two times that response.session_filename gets called 
> in that file only for the consumer app. I figured that out by logging to 
> console around every call.
>
> I don't know if thats intentional, or a bug.
>
> The second part however, may be related to setup.
>
> I can logout from the session via the provider app, but attempting to 
> logout via the consumer app gives me a foreign key error. didnt have time 
> to jump into the generation of logout url.
>
> Thoughts?
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to