I need to authenticate users through LinkedIn, Vkontakte and other social networks that do not yet have providers.
I was able to create my own authentication provider as follows:
- Get the code for the Facebook provider in
Katana source code. - Change all Facebook to Vkontakte (just find and replace).
- Configure the
[provider_name]AuthenticatedContext class, [provider_name]AuthenticationHandler.ApplyResponseChallengeAsync() and [provider_name]AuthenticationHandler.AuthenticateCoreAsync() .
Everything works well, but just interesting. A lot of code is duplicated without actual changes. Is there a way to use any standard material to create a custom provider, and not just copy files?
authentication owin katana
aleyush
source share