Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Flask and Kerberos Authentication

Has anyone ever successfully integrated Windows Kerberos Authentication in a Flask project? I'm building a small business intranet page and having automatic windows sign on would be a nice optional feature. Basically, if the user is logged in to windows, it should also log them into this web app.

Edit: Some things I've learned as well - NginX, Apache, and IIS could have the solution I'm looking for built into them. They have the ability to send $REMOTE_USER headers in their http responses. So I know how to get the user information, the problem now is how to integrate that into a Flask session, and securely as well.

Possible solutions off the top of my head would be to take the http responses and convert them to JWT's, and use Flask Security to handle the sessions..

Edit 2: Here is a post I found that had more relevant information

1 Answer

Here is an answer from Stack Overflow

Hi Kris,

Thank you for the response. Unfortunately I've read over this stack overflow post before, and the only answer provided talks about LDAP authentication. I am limited to Kerberos Authentication in this project. To be more clear, I've updated my OP.