New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble in use with Flask-Login #54
Comments
I seemed to have figured it out. I will likely add this as a gist or do a pull request and add it as an example. |
@jbolda I'd be interested to know how you've done it, because I'm working on something similar right now, and also want to combine authomatic and Flask-Login :) |
I too am interested in a good example to mix authomatic in with flask-login, which my app is already using... |
@jbolda A working example of Authomatic + Flask-Login would be most useful to me. Did you actually get it to work? |
Here is a gist of my working code snippet. I have been busy, but I plan to make a pull request to add a working example using Flask, SQLA, and Flask-Login to the docs |
As far as I can tell, Authomatic doesn't handle the login/logout, but rather just the initial authorization. So I was presuming to use Flask-Login (+ Flask + SQLAlchemy) to handle this. I finally got it working after some initial issues with SSL (see my other question), and was able to push the creds into the database. The next step was to get the login working, so I was referencing this previous question here: #1 (comment) . I ended up adding some complexity to it to give better error messages, but between this two things I broke it somehow. Below is my current code in all its glory. I have tried commenting everything out to discover the root of the problem, but I also just get "something went wrong captain". Side note: is there a good way to debug this? I have it on heroku currently, but I can't find logs or error messages anywhere.
The text was updated successfully, but these errors were encountered: