Skip to content

OKTA-330325 Ensure primary authentication expiration is 5 minutes fro… #42

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

Conversation

andriizhegurov-okta
Copy link
Contributor

…m authentication

Issue #

https://oktainc.atlassian.net/browse/OKTA-330325
Fix #41 41

Code

  • Unit test(s)
  • Implementation

Current behavior

json date strings are being converted to DateTime objects, timezone information is lost during subsequent =>String=>DateTimeOffset conversion.

Desired behavior

json date strings will be deserialized to DateTimeOffset objects, timezone information is preserved during String=>DateTimeOffset conversion.

Additional Context

Copy link
Contributor

@bryanapellanes-okta bryanapellanes-okta left a comment

Choose a reason for hiding this comment

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

Glad this is fixable 👍

@@ -30,7 +30,8 @@ public DefaultSerializer()
NullValueHandling = NullValueHandling.Ignore,
DefaultValueHandling = DefaultValueHandling.Ignore,
ContractResolver = new DefaultContractResolver(),
};
DateParseHandling = DateParseHandling.DateTimeOffset,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit-pick: Fix indentation.

Copy link
Collaborator

@laura-rodriguez laura-rodriguez left a comment

Choose a reason for hiding this comment

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

One minor nit-pick to fix.

LGTM 👍

Copy link
Collaborator

@laura-rodriguez laura-rodriguez left a comment

Choose a reason for hiding this comment

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

Thanks!

@laura-rodriguez laura-rodriguez mentioned this pull request Oct 1, 2020
@laura-rodriguez laura-rodriguez merged commit 8611e10 into okta:master Oct 1, 2020
@andriizhegurov-okta andriizhegurov-okta deleted the OKTA-330325-Ensure-primary-authentication-expiration-is-5-minutes-from-authentication branch October 1, 2020 20:02
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.

AuthenticationResponse.ExpiresAt timezone parsing error?
3 participants