Base solution for your next web application
Open Closed

User token not being saved to DB #11762


User avatar
0
Astech created

We are using MicrosoftIdentity and Microsoft Graph to sign in our users:
MVC Project - AuthConfigurer:
image.png
Everything is working fine, users can sign in, use Graph and [AbpUserLogins] is being populated:
image.png
But [AbpUserTokens] is not being populated with the access token:
image.png

I have tried to insert the token manually, but the constructor for UserToken is protected:
image.png

Can anyone tell me how we should be putting the token into AbpUserTokens? We can create our own similar table to do the same thing but seems unnecesary if there is already the functioanlity to push the access tokens in in ABP.

Thanks,


1 Answer(s)