Skip to content

Use of Oauth2 Google external (TortoiseBaseOAuthAccountModel) and TortoiseBaseUserModel #618

Answered by frankie567
diegocgaona asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you need both. You'll have two tables:

  • One to store the users
  • One to store OAuth credentials. It has a foreign key linking to a user.

You have a complete example here: https://frankie567.github.io/fastapi-users/configuration/oauth/#tortoise-orm_1

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by diegocgaona
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