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

Remove ConcurrencyStamp from IdentitySession. #21034

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Data;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;
using Volo.Abp.ObjectExtending;

namespace Volo.Abp.Identity;

public class IdentitySession : AggregateRoot<Guid>, IMultiTenant
public class IdentitySession : BasicAggregateRoot<Guid>, IHasExtraProperties, IMultiTenant
{
public virtual string SessionId { get; protected set; }

Expand All @@ -28,9 +31,12 @@ public class IdentitySession : AggregateRoot<Guid>, IMultiTenant

public virtual DateTime? LastAccessed { get; protected set; }

public virtual ExtraPropertyDictionary ExtraProperties { get; protected set; }

protected IdentitySession()
{

ExtraProperties = new ExtraPropertyDictionary();
this.SetDefaultsForExtraProperties();
}

public IdentitySession(
Expand All @@ -55,6 +61,17 @@ public IdentitySession(
IpAddresses = ipAddresses;
SignedIn = signedIn;
LastAccessed = lastAccessed;

ExtraProperties = new ExtraPropertyDictionary();
this.SetDefaultsForExtraProperties();
}

public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
return ExtensibleObjectValidator.GetValidationErrors(
this,
validationContext
);
}

public void SetSignedInTime(DateTime signedIn)
Expand Down
Loading
Loading