From bacad6f08533ed178c60cf0819f2b1764317743a Mon Sep 17 00:00:00 2001 From: genuinebasil Date: Mon, 26 May 2014 15:21:26 +1000 Subject: [PATCH] updated the demo project with app_start entries --- .../Owin.Security.Providers.csproj | 10 ++++++++++ .../App_Start/Startup.Auth.cs | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/Owin.Security.Providers/Owin.Security.Providers.csproj b/Owin.Security.Providers/Owin.Security.Providers.csproj index ebbad5c..f0c3978 100644 --- a/Owin.Security.Providers/Owin.Security.Providers.csproj +++ b/Owin.Security.Providers/Owin.Security.Providers.csproj @@ -48,6 +48,7 @@ + @@ -123,6 +124,15 @@ + + + + + + + + + diff --git a/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs b/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs index e363b63..12c3d7d 100755 --- a/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs +++ b/OwinOAuthProvidersDemo/App_Start/Startup.Auth.cs @@ -8,6 +8,7 @@ using Owin.Security.Providers.GooglePlus; using Owin.Security.Providers.GooglePlus.Provider; using Owin.Security.Providers.Instagram; using Owin.Security.Providers.LinkedIn; +using Owin.Security.Providers.Salesforce; using Owin.Security.Providers.Yahoo; using Owin.Security.Providers.OpenID; using Owin.Security.Providers.Steam; @@ -78,6 +79,23 @@ namespace OwinOAuthProvidersDemo //app.UseOpenIDAuthentication("http://orange.fr", "Orange"); // Use OpenId provider login uri instead of discovery uri //app.UseOpenIDAuthentication("http://openid.orange.fr/server", "Orange", true); + + app.UseSalesforceAuthentication("", ""); + + //in scenarios where a sandbox URL needs to be used + app.UseSalesforceAuthentication(new SalesforceAuthenticationOptions + { + Endpoints = + new Owin.Security.Providers.Salesforce.SalesforceAuthenticationOptions. + SalesforceAuthenticationEndpoints + { + AuthorizationEndpoint = + "https://cs5.salesforce.com/services/oauth2/authorize", + TokenEndpoint = "https://cs5.salesforce.com/services/oauth2/token" + }, + ClientId = "", + ClientSecret = "" + }); } } } \ No newline at end of file