Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 801 Bytes

File metadata and controls

22 lines (18 loc) · 801 Bytes

DotNetOpenAuth.AspNet.Extensions

Enables web site visitors to log into an ASP.NET web application via popular identity providers, including VKontakte, Odnoklassniki, Foursquare, Instagram, MailRu and other.

How to use

public static class AuthConfig
{
    public static void RegisterAuth()
    {
        OAuthWebSecurity.RegisterClient(new VKontakteClient(
            appId: "{YourAppId}",
            appSecret: "YourAppSecretCode"), "VKontakte", null);

        OAuthWebSecurity.RegisterClient(new OdnoklassnikiClient(
            appId: "{YourAppId}",
            appPublic: "{YourAppPublicCode}",
            appSecret: "{YourAppSecretCode}"), "Odnoklassniki", null);
    }
}