forked from gitter-badger/IdentityServer4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrantTypes.cs
More file actions
40 lines (28 loc) · 1.43 KB
/
GrantTypes.cs
File metadata and controls
40 lines (28 loc) · 1.43 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
40
// 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;
#pragma warning disable 1591
namespace IdentityServer4.Models
{
public class GrantTypes
{
public static ICollection<string> Implicit =>
new[] { GrantType.Implicit };
public static ICollection<string> ImplicitAndClientCredentials =>
new[] { GrantType.Implicit, GrantType.ClientCredentials };
public static ICollection<string> Code =>
new[] { GrantType.AuthorizationCode };
public static ICollection<string> CodeAndClientCredentials =>
new[] { GrantType.AuthorizationCode, GrantType.ClientCredentials };
public static ICollection<string> Hybrid =>
new[] { GrantType.Hybrid };
public static ICollection<string> HybridAndClientCredentials =>
new[] { GrantType.Hybrid, GrantType.ClientCredentials };
public static ICollection<string> ClientCredentials =>
new[] { GrantType.ClientCredentials };
public static ICollection<string> ResourceOwnerPassword =>
new[] { GrantType.ResourceOwnerPassword };
public static ICollection<string> ResourceOwnerPasswordAndClientCredentials =>
new[] { GrantType.ResourceOwnerPassword, GrantType.ClientCredentials };
}
}