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

server: use seconds instead of nano seconds for expires_in and expiry #671

Merged
merged 1 commit into from
Nov 5, 2016

Conversation

ericchiang
Copy link
Contributor

No description provided.

Copy link
Contributor

@rithujohn191 rithujohn191 left a comment

Choose a reason for hiding this comment

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

Just a small clarification

// we can predict expected values of "expires_in" fields exactly.
now := func() time.Time { return t0 }

idTokensValidFor := time.Second * 30
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a small comment explaining why it is initialized to this value would help.

// we can predict expected values of "expires_in" fields exactly.
now := func() time.Time { return t0 }

// Used later when configuring test servers to set how long id_tokens will be valid for.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rithujohn191 does this clarify this field?

Copy link
Contributor

Choose a reason for hiding this comment

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

perfect

@rithujohn191
Copy link
Contributor

lgtm.

@ericchiang ericchiang merged commit 5302fef into dexidp:dev Nov 5, 2016
@ericchiang ericchiang deleted the fix-server-time-bug branch November 22, 2016 20:07
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