Skip to content

Additional login methods - Email authentication #405

Answered by gi0baro
jpsteil asked this question in Q&A
Discussion options

You must be logged in to vote

As of today, there's no plan in supporting IMAP/POP3 login from the auth module. Some external work has been done about oauth2/oidc, but an extension is not there yet.

In case you want to login users using different protocols through the auth module in Emmett, you should write the appropriate code in your application (even using external libraries), and then manually create your User record. Once you have a user, you can manually log that user in using the provided method:

auth.login_user("[email protected]", "password")

or the low-level API one:

auth.ext.login_user(user_record)

Since you can override routes in the auth exposer, you might end up with something like this:

auth = Auth(app, db, u…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jpsteil
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants