softwaremill / akka-http-session

Web & mobile client-side akka-http sessions, with optional JWT support
https://softwaremill.com/open-source/
Apache License 2.0
440 stars 58 forks source link

Hi,I finished the test on Example, but I encountered a question in the process #42

Closed 5s2j0f6c8k closed 6 years ago

5s2j0f6c8k commented 7 years ago

hello: I just want to test the Example, Two problems were found during the test.

  1. logout server did not delete the session.
  2. Example If used "extends App" else http 500.
5s2j0f6c8k commented 7 years ago
  1. this is test no problem Get("/api/current_login") ~> Route.seal(Example.routes) ~> check { status shouldBe StatusCodes.Forbidden }
  2. this test can not pass Get("/api/current_login") ~> addHeader(Cookie(cookieName, csrfCookie.cookie.value)) ~> addHeader(sessionConfig.csrfSubmittedName, csrfCookie.cookie.value) ~> addHeader(Cookie(sessionConfig.sessionCookieConfig.name, sessionData.cookie.value))~> Route.seal(Example.routes) ~> check { status shouldBe StatusCodes.Forbidden }
adamw commented 7 years ago

Thanks for the PR, however it seems there's a compilation error?