Class IdentityResource
Inheritance
System.Object
IdentityResource
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class IdentityResource : FullAuditedAggregateRoot<Guid>
Constructors
IdentityResource()
Declaration
protected IdentityResource()
IdentityResource(Guid, IdentityServer4.Models.IdentityResource)
Declaration
public IdentityResource(Guid id, IdentityServer4.Models.IdentityResource resource)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
IdentityServer4.Models.IdentityResource |
resource |
|
IdentityResource(Guid, String, String, String, Boolean, Boolean, Boolean, Boolean)
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 |
System.Guid |
id |
|
System.String |
name |
|
System.String |
displayName |
|
System.String |
description |
|
System.Boolean |
enabled |
|
System.Boolean |
required |
|
System.Boolean |
emphasize |
|
System.Boolean |
showInDiscoveryDocument |
|
Properties
Description
Declaration
public virtual string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
DisplayName
Declaration
public virtual string DisplayName { get; set; }
Property Value
Type |
Description |
System.String |
|
Emphasize
Declaration
public virtual bool Emphasize { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Enabled
Declaration
public virtual bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
public virtual string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Properties
Declaration
public virtual Dictionary<string, string> Properties { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
Required
Declaration
public virtual bool Required { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ShowInDiscoveryDocument
Declaration
public virtual bool ShowInDiscoveryDocument { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UserClaims
Declaration
public virtual List<IdentityClaim> UserClaims { get; set; }
Property Value
Methods
AddUserClaim(String)
Declaration
public virtual void AddUserClaim(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
|
FindUserClaim(String)
Declaration
public virtual IdentityClaim FindUserClaim(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
|
Returns
RemoveAllUserClaims()
Declaration
public virtual void RemoveAllUserClaims()
RemoveUserClaim(String)
Declaration
public virtual void RemoveUserClaim(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
|
Extension Methods