<div dir="ltr">The author of Flask-Security also created the following extension <a href="https://github.com/mattupstate/flask-jwt">https://github.com/mattupstate/flask-jwt</a>. See his comments onĀ <a href="https://github.com/mattupstate/flask-security/issues/215">https://github.com/mattupstate/flask-security/issues/215</a>.<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 8:42 AM, Corey Boyle <span dir="ltr"><<a href="mailto:coreybrett@gmail.com" target="_blank">coreybrett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Maybe this could help.<br>
<a href="https://github.com/miguelgrinberg/flasky/issues/60" rel="noreferrer" target="_blank">https://github.com/miguelgrinberg/flasky/issues/60</a><br>
<div><div class="h5"><br>
On Wed, Sep 2, 2015 at 8:10 AM, Morgan Connolly <<a href="mailto:connollymorg@gmail.com">connollymorg@gmail.com</a>> wrote:<br>
> I have a Flask app that uses Flask-Security for authentication, which is<br>
> storing authentication details in cookies on the client side. Currently, it<br>
> is a static app rendered using Jinja templates, but now I want to implement<br>
> some features which require access to protected resources dynamically via<br>
> JavaScript.<br>
><br>
> If I send a request using JavaScript to a URL, the cookies won't be<br>
> transmitted. If I want to transmit the username/password with each request,<br>
> I will have to pass it to Jinja in cleartext.<br>
><br>
> I'm at a total loss here, and I do not know what to do. Can somebody point<br>
> me in the right direction?<br>
><br>
> Cheers<br>
><br>
</div></div>> _______________________________________________<br>
> Flask mailing list<br>
> <a href="mailto:Flask@python.org">Flask@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
><br>
_______________________________________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Scott Werner<br><a href="mailto:scott.werner.vt@gmail.com" target="_blank">scott.werner.vt@gmail.com</a><br></div>
</div></div>