-
Notifications
You must be signed in to change notification settings - Fork 36
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
Multi Auth #1612
Multi Auth #1612
Conversation
remove the GhUserDetails struct rename login to username
create fastn_user on github oauth callback
fix: user_details processors handle empty cookie string that occurs right after logout event fix: remove password field from create_user response
send SMTP emails in fastn
Thanks @amitu for the review. I'll fix the issues raised, add tests and, integrate diesel orm as you suggested. |
@siddhantk232 also checkout https://github.com/orgs/fastn-stack/discussions/1449, and start thinking of ways we can make progress there. |
and mailer instantiation errror
c6325a6
to
aaf25ad
Compare
a demo created using changes introduced in this PR: https://github.com/siddhantk232/fastn-test-multiauth @amitu I think we can merge this PR now. Remaining things will be done in a new PR |
Signed-off-by: Amit Upadhyay <upadhyay@gmail.com>
This PR adds emailpassword login (sign in using email and password) on top of the current github oauth. Both github oauth and emailpassword strategy create a
fastn_user
(database table). Seemultiauth.sql
for more details on the required tables for authentication.It'll be possible in future to merge two accounts by logging in to two
accounts.
step will not be considered when logged in using github
user-details
processors. The
user-details
processor requires no change in existingcodebases. Expect bugs in other places.
TODO
Refactor code that makes database queries in.emailpassword.rs
. Themod db
uses code copied from thesql
processor. Ideally they should share the db pool. This will be fixed in a new PR