Skip to content

Commit 8611e10

Browse files
Merge pull request #43 from okta/andriizhegurov-okta-OKTA-330325-Ensure-primary-authentication-expiration-is-5-minutes-from-authentication
2 parents bb14b9d + 3e47b77 commit 8611e10

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Okta.Auth.Sdk.UnitTests/AuthenticationClientShould.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public async Task ResetPassword()
212212
authResponse.AuthenticationStatus.Should().Be(AuthenticationStatus.Success);
213213
authResponse.SessionToken.Should().Be("00t6IUQiVbWpMLgtmwSjMFzqykb5QcaBNtveiWlGeM");
214214
authResponse.ExpiresAt.Value.Date.Should().Be(new DateTime(2015, 11, 3));
215+
authResponse.ExpiresAt.Value.Should().Be(DateTimeOffset.Parse("2015-11-03T10:15:57.000Z"));
215216

216217
var user = authResponse.Embedded.GetProperty<Resource>("user");
217218
user.Should().NotBeNull();

Okta.Sdk.Abstractions/DefaultSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public DefaultSerializer()
3030
NullValueHandling = NullValueHandling.Ignore,
3131
DefaultValueHandling = DefaultValueHandling.Ignore,
3232
ContractResolver = new DefaultContractResolver(),
33+
DateParseHandling = DateParseHandling.DateTimeOffset,
3334
};
3435

3536
_serializer.Converters.Add(new RecursiveDictionaryConverter());

0 commit comments

Comments
 (0)