Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 28, 2013 09:42 PM by haypet
Member
11 Points
36 Posts
Dec 26, 2012 06:48 AM|LINK
How to use OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler etc.
All-Star
27574 Points
4912 Posts
MVP
Dec 26, 2012 03:27 PM|LINK
OAuthWebSecurity sits on top of DotNetOpenAuth and it provides a plugin model for other OAuth, OAut2 and OpenID providers. You'd have to go read their docs.
Jan 09, 2013 06:50 AM|LINK
Is there any examples/tutorials
Honestly all I found does not make much sense
79 Points
14 Posts
Feb 01, 2013 04:52 PM|LINK
I got a pretty good start with the answer on this SO question http://stackoverflow.com/questions/12878441/how-to-use-openid-providers-with-unique-identifier-urls-in-asp-net-mvc4
Let's you give an arbitrary Url and as long as that provider url has open id implemented right, it should work.
14 Points
18 Posts
Mar 28, 2013 09:42 PM|LINK
chaoren,
This might be what you are looking for:
Yandex OAuth Client
https://github.com/carepass/code-samples/blob/master/CSync_ASP_MVC3/OAuth2/Client/Impl/YandexClient.cs
VK OAuth Client
https://github.com/carepass/code-samples/blob/master/CSync_ASP_MVC3/OAuth2/Client/Impl/VkClient.cs
Then in your AuthConfig.cs you will need to add following lines:
public static void RegisterAuth() { OAuthWebSecurity.RegisterClient(new YandexClient([key], [secret]), "Yandex", null); OAuthWebSecurity.RegisterClient(new VkClient([key], [secret]), "Vk", null); }
Hope this helps.
chaoren
Member
11 Points
36 Posts
OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler
Dec 26, 2012 06:48 AM|LINK
How to use OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler etc.
BrockAllen
All-Star
27574 Points
4912 Posts
MVP
Re: OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler
Dec 26, 2012 03:27 PM|LINK
OAuthWebSecurity sits on top of DotNetOpenAuth and it provides a plugin model for other OAuth, OAut2 and OpenID providers. You'd have to go read their docs.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
chaoren
Member
11 Points
36 Posts
Re: OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler
Jan 09, 2013 06:50 AM|LINK
Is there any examples/tutorials
Honestly all I found does not make much sense
jwendl
Member
79 Points
14 Posts
Re: OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler
Feb 01, 2013 04:52 PM|LINK
I got a pretty good start with the answer on this SO question http://stackoverflow.com/questions/12878441/how-to-use-openid-providers-with-unique-identifier-urls-in-asp-net-mvc4
Let's you give an arbitrary Url and as long as that provider url has open id implemented right, it should work.
haypet
Member
14 Points
18 Posts
Re: OAuthWebSecurity with yandex/mail.ru/vkontakte/rambler
Mar 28, 2013 09:42 PM|LINK
chaoren,
This might be what you are looking for:
Yandex OAuth Client
https://github.com/carepass/code-samples/blob/master/CSync_ASP_MVC3/OAuth2/Client/Impl/YandexClient.cs
VK OAuth Client
https://github.com/carepass/code-samples/blob/master/CSync_ASP_MVC3/OAuth2/Client/Impl/VkClient.cs
Then in your AuthConfig.cs you will need to add following lines:
public static void RegisterAuth() { OAuthWebSecurity.RegisterClient(new YandexClient([key], [secret]), "Yandex", null); OAuthWebSecurity.RegisterClient(new VkClient([key], [secret]), "Vk", null); }Hope this helps.