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

Token migrations #55

Merged
merged 4 commits into from
Feb 10, 2018
Merged

Token migrations #55

merged 4 commits into from
Feb 10, 2018

Conversation

kevinavery
Copy link
Contributor

Introduces token migration for client sessions created with older versions of this library.

Upgrading the library might result in previous session tokens failing to decode, resulting in users being logged out. Now there are configuration settings to enable token migration to the current version.

I've only considered v0.5.0 -> v0.5.3 (current):

These are the added configs:

akka.http.session {
  ...
  token-migration {
    v0-5-2 {
      enabled = false
    }
    v0-5-3 {
      enabled = false
    }
  }
}

If you're upgrading from v0.5.1 to v0.5.3 (current), you should enable migrations for both v0.5.2 and v0.5.3. If you're upgrading from v0.5.2, you only need to enable the v0.5.3 migration.

@adamw adamw merged commit 960da63 into softwaremill:master Feb 10, 2018
@adamw
Copy link
Member

adamw commented Feb 10, 2018

0.5.4 released - thanks for your work! I only made one small change, making SessionSerializer a trait again.

@kevinavery
Copy link
Contributor Author

👍 thanks! When do you expect it to be published to the maven repo?

@adamw
Copy link
Member

adamw commented Feb 10, 2018

🤦‍♂️ forgot to publish for 2.12. Should be there in 15 minutes max

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

Successfully merging this pull request may close these issues.

None yet

2 participants