Class GrantTypes
- Namespace
- Fdyay.IdentityServer.Models
- Assembly
- Fdyay.IdentityServer.Core.dll
Helper that maps grant type names to the allowed grant-type collections for a client.
public static class GrantTypes
- Inheritance
-
GrantTypes
- Inherited Members
Remarks
The implicit and resource-owner-password families are deliberately absent. Both are removed by OAuth 2.1, and neither was ever serviceable here — a client registered for one validated cleanly and could never obtain a token. Offering the name back would restore that false promise rather than the feature.
Properties
ClientCredentials
The client credentials grant alone (RFC 6749 §4.4), for a client acting as itself with no user.
public static ICollection<string> ClientCredentials { get; }
Property Value
Code
The authorization code grant alone (RFC 6749 §4.1).
public static ICollection<string> Code { get; }
Property Value
CodeAndClientCredentials
The authorization code grant and the client credentials grant, for a client that signs users in and also calls APIs as itself.
public static ICollection<string> CodeAndClientCredentials { get; }
Property Value
DeviceFlow
The device authorization grant alone (RFC 8628), for a device that cannot host a browser.
public static ICollection<string> DeviceFlow { get; }