<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Flask-Login on iMil.net</title>
    <link>http://imil.net/blog/tags/flask-login/</link>
    <description>Recent content in Flask-Login on iMil.net</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 06 Jul 2013 10:38:55 +0000</lastBuildDate>
    <atom:link href="http://imil.net/blog/tags/flask-login/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LDAP Flask-Login snippet</title>
      <link>http://imil.net/blog/posts/2013/ldap-flask-login-snippet/</link>
      <pubDate>Sat, 06 Jul 2013 10:38:55 +0000</pubDate>
      <guid>http://imil.net/blog/posts/2013/ldap-flask-login-snippet/</guid>
      <description>&lt;p&gt;At ${DAYWORK}, I am writing a simple &lt;a href=&#34;http://flask.pocoo.org/&#34;&gt;Flask&lt;/a&gt; web frontend for our new information system. I wanted to have a simple authentication method and so I found the &lt;a href=&#34;https://pypi.python.org/pypi/Flask-Login&#34;&gt;Flask-Login&lt;/a&gt; extention for &lt;em&gt;Flask&lt;/em&gt; which takes care of user validation, session remembrance , and has a callback method in order to plug the authentication on whatever backend you&amp;rsquo;d like.&lt;/p&gt;&#xA;&lt;p&gt;I came up with that little piece of code which makes &lt;em&gt;Flask-Login&lt;/em&gt; check a &lt;em&gt;user / password&lt;/em&gt; couple against a LDAP server, and validates a user regarding its &lt;code&gt;user ID&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
