Browse Source
Disable `DateTime` normalization for OpenIddict's `DateTime(UTC)`.
pull/20380/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
6 additions and
0 deletions
-
modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/Authorizations/OpenIddictAuthorization.cs
-
modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/Tokens/OpenIddictToken.cs
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using Volo.Abp.Domain.Entities.Auditing; |
|
|
|
using Volo.Abp.Timing; |
|
|
|
|
|
|
|
namespace Volo.Abp.OpenIddict.Authorizations; |
|
|
|
|
|
|
|
@ -22,6 +23,7 @@ public class OpenIddictAuthorization : FullAuditedAggregateRoot<Guid> |
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the UTC creation date of the current authorization.
|
|
|
|
/// </summary>
|
|
|
|
[DisableDateTimeNormalization] |
|
|
|
public virtual DateTime? CreationDate { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using Volo.Abp.Domain.Entities.Auditing; |
|
|
|
using Volo.Abp.Timing; |
|
|
|
|
|
|
|
namespace Volo.Abp.OpenIddict.Tokens; |
|
|
|
|
|
|
|
@ -27,11 +28,13 @@ public class OpenIddictToken : FullAuditedAggregateRoot<Guid> |
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the UTC creation date of the current token.
|
|
|
|
/// </summary>
|
|
|
|
[DisableDateTimeNormalization] |
|
|
|
public virtual DateTime? CreationDate { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the UTC expiration date of the current token.
|
|
|
|
/// </summary>
|
|
|
|
[DisableDateTimeNormalization] |
|
|
|
public virtual DateTime? ExpirationDate { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -50,6 +53,7 @@ public class OpenIddictToken : FullAuditedAggregateRoot<Guid> |
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the UTC redemption date of the current token.
|
|
|
|
/// </summary>
|
|
|
|
[DisableDateTimeNormalization] |
|
|
|
public virtual DateTime? RedemptionDate { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|