Change MVC Owin provider key

I recently changed my MVC application with




app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions(){
ClientId = "",
ClientSecret = "xxxxxxxxxxxxxxxxxxxxxxx"}); 


When I made this change, it changed the vendor key that google returned. For those who are already registered as a new user, there is a way I can transfer the vendor key or tell owin which vendor key to use. I really don't want to accept the changes and manually run an update statement on my database to change the vendor key.


source to share

1 answer

What I ended up doing was verifying that users' email has already been registered. If it was then, I just added additional login information to this user id.

user = await _userManager.FindByNameAsync(email);




All Articles