Skip to content

Commit

Permalink
SameSite=None support
Browse files Browse the repository at this point in the history
- Fixes #1091
  • Loading branch information
AndersAbel committed Jan 16, 2020
2 parents 2967605 + 0ad2218 commit 89d3986
Show file tree
Hide file tree
Showing 79 changed files with 869 additions and 10,510 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.RazorPages" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.2" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.7" />
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.1.14" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="2.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.3" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.1.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.14" PrivateAssets="All" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.1.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.1.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.14" PrivateAssets="All" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.10" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions Samples/SampleAspNetCore2ApplicationNETFramework/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void ConfigureServices(IServiceCollection services)
options.SPOptions.EntityId = new EntityId("https://localhost:44342/Saml2");
options.IdentityProviders.Add(
new IdentityProvider(
new EntityId("http://localhost:52071/Metadata"), options.SPOptions)
new EntityId("https://localhost:44300/Metadata"), options.SPOptions)
{
LoadMetadata = true
});
Expand All @@ -68,7 +68,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseBrowserLink();
app.UseDatabaseErrorPage();
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SampleApplication</RootNamespace>
<AssemblyName>SampleApplication</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<IISExpressSSLPort>17009</IISExpressSSLPort>
<IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication>
<IISExpressUseClassicPipelineMode>false</IISExpressUseClassicPipelineMode>
<UseGlobalApplicationHostFile />
<TargetFrameworkProfile />
<Use64BitIISExpress />
Expand Down Expand Up @@ -152,11 +152,11 @@
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>17009</DevelopmentServerPort>
<DevelopmentServerVPath>/SamplePath/</DevelopmentServerVPath>
<IISUrl>http://localhost:2695/</IISUrl>
<IISUrl>https://localhost:44301/SamplePath/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
Expand Down
6 changes: 3 additions & 3 deletions Samples/SampleHttpModuleApplication/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-->
<system.web>
<httpRuntime targetFramework="4.5"/>
<compilation debug="true" targetFramework="4.7"/>
<compilation debug="true" targetFramework="4.7.2"/>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880"/>
</authentication>
Expand All @@ -49,7 +49,7 @@
<add name="Saml2AuthenticationModule" type="Sustainsys.Saml2.HttpModule.Saml2AuthenticationModule, Sustainsys.Saml2.HttpModule"/>
</modules>
</system.webServer>
<sustainsys.saml2 entityId="http://localhost:17009/SamplePath/Saml2" returnUrl="http://localhost:17009/SamplePath/" discoveryServiceUrl="http://localhost:52071/DiscoveryService" authenticateRequestSigningBehavior="Always">
<sustainsys.saml2 entityId="https://localhost:44301/SamplePath/Saml2" returnUrl="https://localhost:44301/SamplePath/" discoveryServiceUrl="https://localhost:44300/DiscoveryService" authenticateRequestSigningBehavior="Always">
<nameIdPolicy allowCreate="true" format="Persistent"/>
<requestedAuthnContext classRef="Password" comparison="Minimum"/>
<identityProviders>
Expand All @@ -58,7 +58,7 @@
</add>
</identityProviders>
<federations>
<add metadataLocation="http://localhost:52071/Federation" allowUnsolicitedAuthnResponse="true"/>
<add metadataLocation="https://localhost:44300/Federation" allowUnsolicitedAuthnResponse="true" />
</federations>
<serviceCertificates>
<add fileName="~/App_Data/Sustainsys.Saml2.Tests.pfx"/>
Expand Down
Binary file not shown.
Binary file not shown.
49 changes: 0 additions & 49 deletions Samples/SampleIdentityServer3/Clients.cs

This file was deleted.

35 changes: 0 additions & 35 deletions Samples/SampleIdentityServer3/Properties/AssemblyInfo.cs

This file was deleted.

0 comments on commit 89d3986

Please sign in to comment.