Class IdentityResource
- Namespace
- Duende.IdentityServer.Models
- Assembly
- Duende.IdentityServer.Storage.dll
Models a user identity resource.
public class IdentityResource : Resource
- Inheritance
-
IdentityResource
- Inherited Members
Constructors
IdentityResource()
Initializes a new instance of the IdentityResource class.
public IdentityResource()
IdentityResource(string, IEnumerable<string>)
Initializes a new instance of the IdentityResource class.
public IdentityResource(string name, IEnumerable<string> userClaims)
Parameters
name
stringThe name.
userClaims
IEnumerable<string>List of associated user claims that should be included when this resource is requested.
IdentityResource(string, string, IEnumerable<string>)
Initializes a new instance of the IdentityResource class.
public IdentityResource(string name, string displayName, IEnumerable<string> userClaims)
Parameters
name
stringThe name.
displayName
stringThe display name.
userClaims
IEnumerable<string>List of associated user claims that should be included when this resource is requested.
Exceptions
- ArgumentNullException
name
- ArgumentException
Must provide at least one claim type - claimTypes
Properties
Emphasize
Specifies whether the consent screen will emphasize this scope (if the consent screen wants to implement such a feature). Use this setting for sensitive or important scopes. Defaults to false.
public bool Emphasize { get; set; }
Property Value
Required
Specifies whether the user can de-select the scope on the consent screen (if the consent screen wants to implement such a feature). Defaults to false.
public bool Required { get; set; }