D
D
Dmitry Bychenko2016-08-26 23:24:53
ASP.NET
Dmitry Bychenko, 2016-08-26 23:24:53

How to implement authentication using an external provider (VKontakte) in ASP.NET Core?

I am developing a web application for which authentication through VKontakte should be implemented. There is no intelligible information in the open spaces, there are only examples of the implementation of Facebook and Google using the Microsoft.AspNetCore.Authentication.Facebook and Microsoft.AspNetCore.Authentication.Google packages.
Is it possible to use another provider and how to do it using Identity ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Петр, 2016-08-27
@grandepianisto

VK Open API
1. Получаете через API ID пользователя
2. Находите по ID его у себя в базе
3. Отмечаете, что залогинен
4. Возвращаете странице cookies с токеном вашей сессии

Рифат, 2016-08-29
@serber

В ASP .Net Contrib есть провайдеры для большинства сайтов, в том числе и для ВК

T
technek, 2017-10-30
@technek

Для ASP .NET CORE 2 можно использовать https://github.com/mkhrapunov/AspNet.Security.OAuth.VK

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question