How in the asp.net core mvc project to do authentication through VKontakte?

For other providers did so

services.AddAuthentication().AddFacebook(options => { options.AppId = Configuration["Authentication:Facebook:AppId"]; options.AppSecret = Configuration["Authentication:Facebook:AppSecret"]; }) .AddTwitter(options => { options.ConsumerKey = Configuration["Authentication:Twitter:ConsumerKey"]; options.ConsumerSecret = Configuration["Authentication:Twitter:ConsumerSecret"]; }); 

    2 answers 2

    For authorization, there are many ready-made libraries with detailed documentation and examples of use. The problem can be solved with the help of this ready-made widget.

      You can use AspNet.Security.OAuth.Providers :

       .AddVkontakte(o => { o.ClientId = Configuration["Authentication:VK:AppId"]; o.ClientSecret = Configuration["Authentication:VK:AppSecret"]; }) 

      (but there is a nuance, at the moment it is not broken due to changes in the VK API)