Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Populating AspNetUserLogins and AspNetUserTokens

I've tried quite a few examples from the internet (e.g. first, second and others) and everything works fine except the fact that tables AspNetUserLogins and AspNetUserTokens don't show any data after successful login and token generation.

Why is this happening and how can I fix it?

like image 749
Alexandru Stefan Avatar asked Jul 05 '18 22:07

Alexandru Stefan


1 Answers

The table AspNetUserTokens is for external authentication token storage and is filled by SignInManager.UpdateExternalAuthenticationTokensAsync method. Internal authentication tokens are stored in memory by default and if you want to store them into the database, you must create your own table and your own logic to store.

like image 62
Morteza Zabihi Avatar answered Nov 14 '22 00:11

Morteza Zabihi