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

Make sure the expiry date time is relative to the time as the client sees it #1299

Merged
merged 3 commits into from
Oct 17, 2017

Conversation

nwmac
Copy link
Contributor

@nwmac nwmac commented Oct 13, 2017

The client now sends the time as it sees it in a custom header.

The backend will return the session expiry as a timestamp based on the client's timestamp.

The original error occurs when someone changes the time by modifying the time itself rather than changing the timezone - e.g. if you were in Prague, you leave the timezone as London, but manually add 1 hour to the time.

@nwmac nwmac changed the title Make sure the expiry date time is relative to the time as the client … Make sure the expiry date time is relative to the time as the client sees it Oct 16, 2017
if err != nil {
return err
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should lines 106-114 also get the chop?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they should...hmmm... not sure how that happenned... good spot!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a new commit that removes these lines.

@richard-cox richard-cox merged commit 2c3205a into master Oct 17, 2017
@richard-cox richard-cox deleted the autologout-fails branch October 17, 2017 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants