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

Request: reduce the precision of IssueInstant to microseconds #39

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

fumieval
Copy link
Contributor

@fumieval fumieval commented Jan 16, 2023

Checklist

  • All definitions are documented with Haddock-style comments.
  • All exported definitions have @since annotations.
  • Code is formatted in line with the existing code.
  • The changelog has been updated.

It turns out that picosecond resolution in the IssueInstant timestamp causes
XML attribute 'IssueInstant' in the SAML message must be a dateTime. error on AzureAD. This change fixes the problem by using iso8601Show instead, reducing the resolution to microseconds

@github-actions github-actions bot requested a review from mbg January 16, 2023 11:09
@fumieval fumieval changed the title Request: reduce the precision for IssueInstant Request: reduce the precision of IssueInstant to microseconds Jan 16, 2023
src/Network/Wai/SAML2/Request.hs Show resolved Hide resolved
@@ -33,6 +33,7 @@ import Crypto.Random

import Data.Time.Clock
import Data.Time.Format
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like this import might be redundant now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch

Copy link
Owner

@mbg mbg left a comment

Choose a reason for hiding this comment

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

LGTM - thank you! 🚀

@mbg mbg merged commit 62da8d8 into mbg:master Jan 17, 2023
@fumieval
Copy link
Contributor Author

My pleasure!

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.

2 participants