Class ApiScope
- Namespace
- Duende.IdentityServer.Models
- Assembly
- Duende.IdentityServer.Storage.dll
Models access to an API scope
public class ApiScope : Resource
- Inheritance
-
ApiScope
- Inherited Members
Constructors
ApiScope()
Initializes a new instance of the ApiScope class.
public ApiScope()
ApiScope(string)
Initializes a new instance of the ApiScope class.
public ApiScope(string name)
Parameters
name
stringThe name.
ApiScope(string, IEnumerable<string>)
Initializes a new instance of the ApiScope class.
public ApiScope(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.
ApiScope(string, string)
Initializes a new instance of the ApiScope class.
public ApiScope(string name, string displayName)
Parameters
ApiScope(string, string, IEnumerable<string>?)
Initializes a new instance of the ApiScope class.
public ApiScope(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
Properties
Emphasize
Specifies whether the consent screen will emphasize this scope. 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. Defaults to false.
public bool Required { get; set; }