Table of Contents

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 string

The 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 string

The name.

displayName string

The 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

bool

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; }

Property Value

bool