r/flask • rdegges • Feb 26 '14

Solving the Flask Authentication Problem

https://stormpath.com/blog/part-two-solving-flask-authentication-problem
0 Upvotes

2 comments sorted by

9

u/theywouldnotstand Feb 26 '14

I read Part 1 before I read Part 2.

What I was expecting:

  • A good explanation of the "Flask Authentication Problem"

  • A handful of explanations or tips on how to tackle the more difficult parts.

What I got:

  • Part 1 talks about how you have to roll your own auth system/user models in Flask (duh, microframework)

  • Part 2 is essentially a plug for a Flask module that integrates with a service provided by a company the author works for.

Plugging the company service and a Flask module that uses it isn't the bad part, it sounds like a very useful service, especially for enterprise solutions. It's the way it was set up and phrased that irks me.

1

u/rdegges rdegges Feb 26 '14

Sorry about that! I tried to write it in such a way that the points would come off clear and intuitive.

I elaborated about this more on the HN discussion here: https://news.ycombinator.com/item?id=7306207

But essentially: Flask is a microframework. It's unreasonable to expect it to handle this stuff in the same way Django does, for instance.

I've always felt, however, that regardless of the framework status, authentication is such an important and critical problem (which is so easy to mess up), that it truly deserves a one-size fits all solution.

Thank you for the comment, appreciate the honest feedback.