Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 35 additions & 11 deletions src/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public class Config
ClientName = "Machine to machine (client credentials with JWT)",
AllowedGrantTypes = GrantTypes.ClientCredentials,
AllowedScopes = AllApiScopes,

ClientSecrets = { PublicKey }
},
new Client
Expand All @@ -141,7 +141,7 @@ public class Config

AllowedGrantTypes = GrantTypes.ClientCredentials,
AllowedScopes = AllApiScopes,

RequireDPoP = true,
DPoPValidationMode = DPoPTokenExpirationValidationMode.Nonce,
},
Expand All @@ -162,7 +162,7 @@ public class Config
AllowedGrantTypes = GrantTypes.ClientCredentials,
AllowedScopes = AllApiScopes,
AccessTokenLifetime = 75,

ClientSecrets = { PublicKey }
},

Expand All @@ -184,7 +184,7 @@ public class Config
RefreshTokenUsage = TokenUsage.ReUse,
RefreshTokenExpiration = TokenExpiration.Sliding
},

new Client
{
ClientId = "interactive.confidential.jwt",
Expand All @@ -204,6 +204,30 @@ public class Config
RefreshTokenExpiration = TokenExpiration.Sliding
},

new Client
{
ClientId = "interactive.confidential.jwt.dpop",
ClientName = "Interactive client (Code with PKCE) using private key JWT authentication and requiring DPoP with server-issued nonces",

RedirectUris = { "https://notused" },
PostLogoutRedirectUris = { "https://notused" },

ClientSecrets = { PublicKey },

AllowedGrantTypes = GrantTypes.CodeAndClientCredentials,
RequireRequestObject = false,
AllowedScopes = AllScopes,

AllowOfflineAccess = true,
RefreshTokenUsage = TokenUsage.ReUse,
RefreshTokenExpiration = TokenExpiration.Sliding,

RequireDPoP = true,
DPoPValidationMode = DPoPTokenExpirationValidationMode.Nonce,

AccessTokenLifetime = 75
},

new Client
{
ClientId = "interactive.confidential.jar.jwt",
Expand All @@ -222,7 +246,7 @@ public class Config
RefreshTokenUsage = TokenUsage.ReUse,
RefreshTokenExpiration = TokenExpiration.Sliding
},

new Client
{
ClientId = "interactive.confidential.short",
Expand All @@ -241,7 +265,7 @@ public class Config
AllowOfflineAccess = true,
RefreshTokenUsage = TokenUsage.ReUse,
RefreshTokenExpiration = TokenExpiration.Sliding,

AccessTokenLifetime = 75
},

Expand Down Expand Up @@ -283,7 +307,7 @@ public class Config
AllowOfflineAccess = true,
RefreshTokenUsage = TokenUsage.ReUse,
RefreshTokenExpiration = TokenExpiration.Sliding,

AccessTokenLifetime = 75
},

Expand Down Expand Up @@ -342,7 +366,7 @@ public class Config
AllowOfflineAccess = true,
RefreshTokenUsage = TokenUsage.OneTimeOnly,
RefreshTokenExpiration = TokenExpiration.Sliding,

AccessTokenLifetime = 75
},

Expand Down Expand Up @@ -397,7 +421,7 @@ public class Config
AllowOfflineAccess = true,
RefreshTokenUsage = TokenUsage.OneTimeOnly,
RefreshTokenExpiration = TokenExpiration.Sliding,

AllowedScopes = AllScopes,
},

Expand All @@ -418,10 +442,10 @@ public class Config
new Client
{
ClientId = "login",

RedirectUris = { "https://notused" },
PostLogoutRedirectUris = { "https://notused" },

AllowedGrantTypes = GrantTypes.Implicit,
AllowedScopes = AllIdentityScopes,
}
Expand Down