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

Add cookie domain support to Session and Auth snaplets #150

Merged
merged 2 commits into from
Jun 15, 2015

Commits on May 29, 2015

  1. Add exported helper function expireSecureCookie

    It sets same cookie parameters as setSecureCookie.
    
    forgetSecureCookie didn't set httpOnly parameter on cookie, which could
    make some new browsers ignore it.
    sopvop committed May 29, 2015
    Configuration menu
    Copy the full SHA
    fee1fe8 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2015

  1. Add domains for cookies in auth/session snaplets

    You can set domain name for cookies in auth and cookie session
    snaplets. This is useful when you want to make stored cookies available
    to sub-domains.
    
    For example: If you set cookie domain to `.example.com`, browser will
    send it with requests to sub-domains like
    `api.example.com`,`wiki.example.com` or `sub.subdomain.example.com`.
    
    This is a breaking change for public Api.
    
    Some snaplets which initialize AuthManager record with named fields like
    AuthManager { remberCookie = .. } will receive compilation warning only!
    This includes, for example, a popular snaplet-postgresql-simple Auth
    Backend.
    sopvop committed Jun 8, 2015
    Configuration menu
    Copy the full SHA
    0ac4ce7 View commit details
    Browse the repository at this point in the history