<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Mandar, if you’re using Google OAuth with Flask, and you’re having trouble getting it to work, I’d love for you to check out Flask-Dance, which is a Flask extension I wrote to handle OAuth login. It’s also has a contrib module specific to Google, and the quickstart is here: <a href="http://flask-dance.readthedocs.org/en/latest/quickstarts/google.html">http://flask-dance.readthedocs.org/en/latest/quickstarts/google.html</a> There’s also a quickstart that shows how to set up a multi-user system using Flask-Login and Flask-SQLAlchemy: <a href="http://flask-dance.readthedocs.org/en/latest/quickstarts/sqla-multiuser.html">http://flask-dance.readthedocs.org/en/latest/quickstarts/sqla-multiuser.html</a></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Is that useful?</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">David Baumgold</div> <br> <div id="bloop_sign_1440093261510465024" class="bloop_sign"></div> <div class="airmail_ext_on" style="color:black"><br>From: <span style="color:black">Mandar Rahurkar</span> <a href="mailto:rahurkar@gmail.com"><rahurkar@gmail.com></a><br>Reply: <span style="color:black">Mandar Rahurkar</span> <a href="mailto:rahurkar@gmail.com"><rahurkar@gmail.com>></a><br>Date: <span style="color:black">August 20, 2015 at 1:53:43 PM</span><br>To: <span style="color:black">flask@python.org</span> <a href="mailto:flask@python.org"><flask@python.org>></a><br>Subject: <span style="color:black"> [Flask] Session timeout/ User authentication <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div dir="ltr">Hi Follow users,
<div>I am currently using google oauth for authentication using
rauth, Flask-Login extensions. I am also using "<span class="s1">session[</span><span class="s2">'permanent'</span><span class="s1">] =</span> <span class="s3">True" to remember the sessions for
certain period when timing them out. However, what happens is the
screen does not automatically refresh to logged out view upon
session expiry and needs to be manually
refreshed. </span></div>
<div><br></div>
<div>One of the methods I have seen used is to pass a session id to
the the browser and browser checks every few minutes if the session
is valid and if not, refreshes the view to logged out view. How is
this workflow usually implemented in Flask? I can pass session id
when the application view is created, however how do you about
authenticating session ids.</div>
<div><br></div>
<div>thanks for the heads up,</div>
<div><br></div>
<div>cheers,</div>
<div>Mandar<br>
<div><br></div>
</div>
</div>


_______________________________________________
<br>Flask mailing list
<br>Flask@python.org
<br>https://mail.python.org/mailman/listinfo/flask
<br></div></div></span></blockquote></body></html>