forked from gitter-badger/IdentityServer4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResource.cs
More file actions
39 lines (32 loc) · 1.18 KB
/
Resource.cs
File metadata and controls
39 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Collections.Generic;
namespace IdentityServer4.Models
{
/// <summary>
/// Models the common data of API and identity resources.
/// </summary>
public abstract class Resource
{
/// <summary>
/// Indicates if this resource is enabled. Defaults to true.
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// The unique name of the resource.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Display name of the resource.
/// </summary>
public string DisplayName { get; set; }
/// <summary>
/// Description of the resource.
/// </summary>
public string Description { get; set; }
/// <summary>
/// List of accociated user claims that should be included when this resource is requested.
/// </summary>
public ICollection<string> UserClaims { get; set; } = new HashSet<string>();
}
}