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

authorize: fix device synchronization #3482

Merged
merged 1 commit into from Jul 15, 2022
Merged

Conversation

calebdoxsey
Copy link
Contributor

Summary

Currently if a session is updated we may not pick up the update in the Authorize service for a number of seconds. This updates the code to invalidate the cache when a session is updated. This is signaled by a DataBrokerRecordVersion number stored in the session cookie.

Related issues

Fixes https://github.com/pomerium/internal/issues/830

User Explanation

Fix a bug with sessions.

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@calebdoxsey calebdoxsey added the bug Something isn't working label Jul 15, 2022
@calebdoxsey calebdoxsey requested a review from a team as a code owner July 15, 2022 16:17
@calebdoxsey calebdoxsey requested a review from wasaga July 15, 2022 16:17
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 64.117% when pulling f668205 on cdoxsey/device-sync into bc078f8 on main.

@calebdoxsey calebdoxsey merged commit fe61a74 into main Jul 15, 2022
@calebdoxsey calebdoxsey deleted the cdoxsey/device-sync branch July 15, 2022 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants