Permalink
Browse files

#484 Add cookie managers to mitigate SystemWeb integration issues

  • Loading branch information...
Tratcher committed Jan 28, 2017
1 parent 76d3494 commit 49b78c0874587832e01ba8cad23d9ce8e4f78f19
Showing with 938 additions and 15 deletions.
  1. +2 −0 src/Microsoft.Owin.Host.SystemWeb/Microsoft.Owin.Host.SystemWeb.csproj
  2. +19 −1 src/Microsoft.Owin.Host.SystemWeb/Resources.Designer.cs
  3. +6 −0 src/Microsoft.Owin.Host.SystemWeb/Resources.resx
  4. +331 −0 src/Microsoft.Owin.Host.SystemWeb/SystemWebChunkingCookieManager.cs
  5. +127 −0 src/Microsoft.Owin.Host.SystemWeb/SystemWebCookieManager.cs
  6. +6 −0 src/Microsoft.Owin.Security.Facebook/FacebookAuthenticationOptions.cs
  7. +6 −0 src/Microsoft.Owin.Security.Google/GoogleOAuth2AuthenticationOptions.cs
  8. +6 −0 src/Microsoft.Owin.Security.MicrosoftAccount/MicrosoftAccountAuthenticationOptions.cs
  9. +6 −0 src/Microsoft.Owin.Security.OpenIdConnect/OpenIdConnectAuthenticationOptions.cs
  10. +4 −3 src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs
  11. +9 −3 src/Microsoft.Owin.Security.Twitter/TwitterAuthenticationHandler.cs
  12. +6 −0 src/Microsoft.Owin.Security.Twitter/TwitterAuthenticationOptions.cs
  13. +88 −0 src/Microsoft.Owin.Security/Infrastructure/AuthenticationHandler.cs
  14. +71 −0 src/Microsoft.Owin/Infrastructure/CookieManager.cs
  15. +24 −0 src/Microsoft.Owin/Infrastructure/ICookieManager.cs
  16. +1 −0 src/Microsoft.Owin/Microsoft.Owin.csproj
  17. +6 −2 tests/Katana.Sandbox.WebServer/Startup.cs
  18. +2 −0 tests/Microsoft.Owin.Host.IntegrationTests/Microsoft.Owin.Host.IntegrationTests.csproj
  19. +106 −0 tests/Microsoft.Owin.Host.IntegrationTests/SystemWebChunkingCookieManagerTests.cs
  20. +106 −0 tests/Microsoft.Owin.Host.IntegrationTests/SystemWebCookieManagerTests.cs
  21. +3 −3 tests/Microsoft.Owin.Security.Tests/Google/GoogleOAuth2MiddlewareTests.cs
  22. +3 −3 tests/Microsoft.Owin.Security.Tests/MicrosoftAccount/MicrosoftAccountMiddlewareTests.cs
@@ -80,6 +80,7 @@
<Compile Include="CallStreams\DelegatingStream.cs" />
<Compile Include="CallStreams\InputStream.cs" />
<Compile Include="CallStreams\OutputStream.cs" />
<Compile Include="SystemWebChunkingCookieManager.cs" />
<Compile Include="Constants.cs" />
<Compile Include="DataProtection\MachineKeyDataProtector.cs" />
<Compile Include="DataProtection\MachineKeyDataProtectionProvider.cs" />
@@ -130,6 +131,7 @@
</Compile>
<Compile Include="RouteCollectionExtensions.cs" />
<Compile Include="ShutdownDetector.cs" />
<Compile Include="SystemWebCookieManager.cs" />
<Compile Include="UnsafeIISMethods.cs" />
<Compile Include="Utils.cs" />
<Compile Include="WebSockets\OwinWebSocketWrapper.cs" />

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -123,6 +123,9 @@
<data name="Exception_CannotRegisterAfterHeadersSent" xml:space="preserve">
<value>Cannot register for 'OnSendingHeaders' event after response headers have been sent.</value>
</data>
<data name="Exception_CookieLimitTooSmall" xml:space="preserve">
<value>The cookie key and options are larger than ChunksSize, leaving no room for data.</value>
</data>
<data name="Exception_DuplicateKey" xml:space="preserve">
<value>The key '{0}' is already present in the dictionary.</value>
</data>
@@ -132,6 +135,9 @@
<data name="Exception_HowToSpecifyAppStartup" xml:space="preserve">
<value>To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.</value>
</data>
<data name="Exception_ImcompleteChunkedCookie" xml:space="preserve">
<value>The chunked cookie is incomplete. Only {0} of the expected {1} chunks were found, totaling {2} characters. A client size limit may have been exceeded.</value>
</data>
<data name="Exception_UnsupportedPipelineStage" xml:space="preserve">
<value>The given stage '{0}' is not supported.</value>
</data>
Oops, something went wrong.

0 comments on commit 49b78c0

Please sign in to comment.