Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Cookies middleware fails on mono as it depends on GZipStream #28

@Praburaj

Description

@Praburaj

Cookies middleware does not work on mono as the TicketSerializer it uses compresses the cookie response using GZipStream.

System.NotImplementedException: The requested feature is not implemented.
  at System.IO.Compression.GZipStream..ctor (System.IO.Stream stream, CompressionLevel compressionLevel) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.Compression.GZipStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionLevel)
  at Microsoft.AspNet.Security.DataHandler.Serializer.TicketSerializer.Serialize (Microsoft.AspNet.Security.AuthenticationTicket model) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Security.DataHandler.SecureDataFormat`1[Microsoft.AspNet.Security.AuthenticationTicket].Protect (Microsoft.AspNet.Security.AuthenticationTicket data) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Security.Cookies.CookieAuthenticationHandler+<ApplyResponseGrantAsync>d__1.MoveNext () [0x00000] in <filename unknown>:0 
System.NotImplementedException: The requested feature is not implemented.
  at System.IO.Compression.GZipStream..ctor (System.IO.Stream stream, CompressionLevel compressionLevel) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.Compression.GZipStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionLevel)
  at Microsoft.AspNet.Security.DataHandler.Serializer.TicketSerializer.Serialize (Microsoft.AspNet.Security.AuthenticationTicket model) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Security.DataHandler.SecureDataFormat`1[Microsoft.AspNet.Security.AuthenticationTicket].Protect (Microsoft.AspNet.Security.AuthenticationTicket data) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Security.Cookies.CookieAuthenticationHandler+<ApplyResponseGrantAsync>d__1.MoveNext () [0x00000] in <filename unknown>:0 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions