From 8b5e916a7c3c44a637714e3b0b526bacabfcb27e Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Sun, 19 Apr 2015 22:39:27 -0400 Subject: [PATCH] include demo --- .../App_Start/Startup.Auth.cs | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs b/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs index bf04d4a..49d2f3f 100755 --- a/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs +++ b/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs @@ -26,6 +26,7 @@ using Owin.Security.Providers.Yahoo; using Owin.Security.Providers.OpenID; using Owin.Security.Providers.SoundCloud; using Owin.Security.Providers.Steam; +using Owin.Security.Providers.Untappd; using Owin.Security.Providers.WordPress; namespace OwinOAuthProvidersDemo @@ -44,6 +45,7 @@ namespace OwinOAuthProvidersDemo // Use a cookie to temporarily store information about a user logging in with a third party login provider app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie); + //app.UseUntappdAuthentication("id", "secret"); // Uncomment the following lines to enable logging in with third party login providers //app.UseMicrosoftAccountAuthentication( // clientId: "", @@ -64,7 +66,7 @@ namespace OwinOAuthProvidersDemo //app.UseYahooAuthentication("", ""); //app.UseTripItAuthentication("", ""); - + //app.UseGitHubAuthentication("", ""); //app.UseBufferAuthentication("", ""); @@ -109,7 +111,7 @@ namespace OwinOAuthProvidersDemo // ClientSecret = "", // Provider = new TwitchAuthenticationProvider() // { - + // OnAuthenticated = async z => // { //// Getting the twitch users picture @@ -118,7 +120,7 @@ namespace OwinOAuthProvidersDemo //// You should be able to access these claims with HttpContext.GetOwinContext().Authentication.GetExternalLoginInfoAsync().Claims in your Account Controller // // Commonly used in the ExternalLoginCallback() in AccountController.cs // /* - + // if (user != null) // { // var claim = (await AuthenticationManager.GetExternalLoginInfoAsync()).ExternalIdentity.Claims.First( @@ -131,7 +133,7 @@ namespace OwinOAuthProvidersDemo // } //}; //app.UseTwitchAuthentication(opt); - + //app.UseOpenIDAuthentication("http://me.yahoo.com/", "Yahoo"); @@ -191,24 +193,24 @@ namespace OwinOAuthProvidersDemo // clientSecret: ""); - //app.UseBattleNetAuthentication(new BattleNetAuthenticationOptions - //{ - // ClientId = "", - // ClientSecret = "" - //}); - //app.UseBattleNetAuthentication( - // clientId: "", - // clientSecret: ""); + //app.UseBattleNetAuthentication(new BattleNetAuthenticationOptions + //{ + // ClientId = "", + // ClientSecret = "" + //}); + //app.UseBattleNetAuthentication( + // clientId: "", + // clientSecret: ""); //app.UseAsanaAuthentication("", ""); //app.UseEveOnlineAuthentication("", ""); - //app.UseSoundCloudAuthentication("", ""); + //app.UseSoundCloudAuthentication("", ""); - //app.UseFoursquareAuthentication( - // clientId: "", - // clientSecret: ""); + //app.UseFoursquareAuthentication( + // clientId: "", + // clientSecret: ""); } } } \ No newline at end of file