Show / Hide Table of Contents

Class IdentityResource

Inheritance
object
Entity
Entity<Guid>
BasicAggregateRoot<Guid>
AggregateRoot<Guid>
CreationAuditedAggregateRoot<Guid>
AuditedAggregateRoot<Guid>
FullAuditedAggregateRoot<Guid>
IdentityResource
Implements
IAggregateRoot<Guid>
IEntity<Guid>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete
Inherited Members
FullAuditedAggregateRoot<Guid>.IsDeleted
FullAuditedAggregateRoot<Guid>.DeleterId
FullAuditedAggregateRoot<Guid>.DeletionTime
AuditedAggregateRoot<Guid>.LastModificationTime
AuditedAggregateRoot<Guid>.LastModifierId
CreationAuditedAggregateRoot<Guid>.CreationTime
CreationAuditedAggregateRoot<Guid>.CreatorId
AggregateRoot<Guid>.Validate(ValidationContext)
AggregateRoot<Guid>.ExtraProperties
AggregateRoot<Guid>.ConcurrencyStamp
BasicAggregateRoot<Guid>.GetLocalEvents()
BasicAggregateRoot<Guid>.GetDistributedEvents()
BasicAggregateRoot<Guid>.ClearLocalEvents()
BasicAggregateRoot<Guid>.ClearDistributedEvents()
BasicAggregateRoot<Guid>.AddLocalEvent(object)
BasicAggregateRoot<Guid>.AddDistributedEvent(object)
Entity<Guid>.GetKeys()
Entity<Guid>.ToString()
Entity<Guid>.Id
Entity.EntityEquals(IEntity)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.IdentityServer.IdentityResources
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class IdentityResource : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete

Constructors

IdentityResource()

Declaration
protected IdentityResource()

IdentityResource(Guid, IdentityResource)

Declaration
public IdentityResource(Guid id, IdentityResource resource)
Parameters
Type Name Description
Guid id
IdentityResource resource

IdentityResource(Guid, string, string, string, bool, bool, bool, bool)

Declaration
public IdentityResource(Guid id, string name, string displayName = null, string description = null, bool enabled = true, bool required = false, bool emphasize = false, bool showInDiscoveryDocument = true)
Parameters
Type Name Description
Guid id
string name
string displayName
string description
bool enabled
bool required
bool emphasize
bool showInDiscoveryDocument

Properties

Description

Declaration
public virtual string Description { get; set; }
Property Value
Type Description
string

DisplayName

Declaration
public virtual string DisplayName { get; set; }
Property Value
Type Description
string

Emphasize

Declaration
public virtual bool Emphasize { get; set; }
Property Value
Type Description
bool

Enabled

Declaration
public virtual bool Enabled { get; set; }
Property Value
Type Description
bool

Name

Declaration
public virtual string Name { get; set; }
Property Value
Type Description
string

Properties

Declaration
public virtual List<IdentityResourceProperty> Properties { get; set; }
Property Value
Type Description
List<IdentityResourceProperty>

Required

Declaration
public virtual bool Required { get; set; }
Property Value
Type Description
bool

ShowInDiscoveryDocument

Declaration
public virtual bool ShowInDiscoveryDocument { get; set; }
Property Value
Type Description
bool

UserClaims

Declaration
public virtual List<IdentityResourceClaim> UserClaims { get; set; }
Property Value
Type Description
List<IdentityResourceClaim>

Methods

AddProperty(string, string)

Declaration
public virtual void AddProperty(string key, string value)
Parameters
Type Name Description
string key
string value

AddUserClaim(string)

Declaration
public virtual void AddUserClaim(string type)
Parameters
Type Name Description
string type

FindProperty(string)

Declaration
public virtual IdentityResourceProperty FindProperty(string key)
Parameters
Type Name Description
string key
Returns
Type Description
IdentityResourceProperty

FindUserClaim(string)

Declaration
public virtual IdentityResourceClaim FindUserClaim(string type)
Parameters
Type Name Description
string type
Returns
Type Description
IdentityResourceClaim

RemoveAllProperties()

Declaration
public virtual void RemoveAllProperties()

RemoveAllUserClaims()

Declaration
public virtual void RemoveAllUserClaims()

RemoveProperty(string)

Declaration
public virtual void RemoveProperty(string key)
Parameters
Type Name Description
string key

RemoveUserClaim(string)

Declaration
public virtual void RemoveUserClaim(string type)
Parameters
Type Name Description
string type

Implements

IAggregateRoot<TKey>
IEntity<TKey>
IAggregateRoot
IEntity
IGeneratesDomainEvents
IHasExtraProperties
IHasConcurrencyStamp
IFullAuditedObject
IAuditedObject
ICreationAuditedObject
IHasCreationTime
IMayHaveCreator
IModificationAuditedObject
IHasModificationTime
IDeletionAuditedObject
IHasDeletionTime
ISoftDelete

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform