Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play 2.4.2 and can't decode cookie header #142

Closed
brianwawok opened this issue Jul 8, 2015 · 2 comments
Closed

play 2.4.2 and can't decode cookie header #142

brianwawok opened this issue Jul 8, 2015 · 2 comments

Comments

@brianwawok
Copy link

I see this message in my logs with play 2.4.2 and play2 auth 0.14.0 on every request

 [debug] play.api.mvc.Cookies - Couldn't decode the Cookie header containing:

This is coming from either

https://github.com/playframework/playframework/blob/master/framework/src/play/src/main/scala/play/api/mvc/Http.scala#L898

or

https://github.com/playframework/playframework/blob/master/framework/src/play/src/main/scala/play/api/mvc/Http.scala#L918

Everything seems to work.. not sure it matters?

I have a pretty plane tokenAccessor defined:

  override lazy val tokenAccessor: TokenAccessor = new CookieTokenAccessor(
    cookieName =  "PLAY2AUTH_SESS_ID",
    cookieSecureOption = isProd(),
    cookieHttpOnlyOption = true,
    cookieDomainOption = {
      if(isProd()){
        Some("foobar.com")
      } else {
        None
      }
    },
    cookiePathOption =  "/",
    cookieMaxAge = Some(sessionTimeoutInSeconds)
  )
@gakuzzzz
Copy link
Member

mmm, I can't reproduce...

Would you write small codes?

@brianwawok
Copy link
Author

seems to be some localhost only crazyiness, can close this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants