updated the demo project with app_start entries
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Net.Http.WebRequest" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
@@ -123,6 +124,15 @@
|
||||
<Compile Include="Reddit\RedditAuthenticationHandler.cs" />
|
||||
<Compile Include="Reddit\RedditAuthenticationMiddleware.cs" />
|
||||
<Compile Include="Reddit\RedditAuthenticationOptions.cs" />
|
||||
<Compile Include="Salesforce\Constants.cs" />
|
||||
<Compile Include="Salesforce\Provider\ISalesforceAuthenticationProvider.cs" />
|
||||
<Compile Include="Salesforce\Provider\SalesforceAuthenticatedContext.cs" />
|
||||
<Compile Include="Salesforce\Provider\SalesforceAuthenticationProvider.cs" />
|
||||
<Compile Include="Salesforce\Provider\SalesforceReturnEndpointContext.cs" />
|
||||
<Compile Include="Salesforce\SalesforceAuthenticationExtensions.cs" />
|
||||
<Compile Include="Salesforce\SalesforceAuthenticationHandler.cs" />
|
||||
<Compile Include="Salesforce\SalesforceAuthenticationMiddleware.cs" />
|
||||
<Compile Include="Salesforce\SalesforceAuthenticationOptions.cs" />
|
||||
<Compile Include="Steam\SteamAuthenticationExtensions.cs" />
|
||||
<Compile Include="Steam\SteamAuthenticationHandler.cs" />
|
||||
<Compile Include="Steam\SteamAuthenticationMiddleware.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 = ""
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user