|
|
@ -136,7 +136,8 @@ public static partial class OpenIddictClientWebIntegrationHandlers |
|
|
context.Configuration.GrantTypesSupported.Add(GrantTypes.Implicit); |
|
|
context.Configuration.GrantTypesSupported.Add(GrantTypes.Implicit); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
else if (context.Registration.ProviderType is ProviderTypes.Asana or ProviderTypes.Slack) |
|
|
else if (context.Registration.ProviderType is |
|
|
|
|
|
ProviderTypes.DocuSign or ProviderTypes.Asana or ProviderTypes.Slack) |
|
|
{ |
|
|
{ |
|
|
context.Configuration.GrantTypesSupported.Add(GrantTypes.RefreshToken); |
|
|
context.Configuration.GrantTypesSupported.Add(GrantTypes.RefreshToken); |
|
|
} |
|
|
} |
|
|
@ -181,7 +182,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers |
|
|
context.Configuration.CodeChallengeMethodsSupported.Add(CodeChallengeMethods.Sha256); |
|
|
context.Configuration.CodeChallengeMethodsSupported.Add(CodeChallengeMethods.Sha256); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
else if (context.Registration.ProviderType is ProviderTypes.Salesforce) |
|
|
else if (context.Registration.ProviderType is ProviderTypes.DocuSign or ProviderTypes.Salesforce) |
|
|
{ |
|
|
{ |
|
|
context.Configuration.CodeChallengeMethodsSupported.Add(CodeChallengeMethods.Sha256); |
|
|
context.Configuration.CodeChallengeMethodsSupported.Add(CodeChallengeMethods.Sha256); |
|
|
} |
|
|
} |
|
|
@ -216,7 +217,14 @@ public static partial class OpenIddictClientWebIntegrationHandlers |
|
|
// While it is a recommended node, some providers don't include "scopes_supported" in their
|
|
|
// While it is a recommended node, some providers don't include "scopes_supported" in their
|
|
|
// configuration and thus are treated as OAuth 2.0-only providers by the OpenIddict client.
|
|
|
// configuration and thus are treated as OAuth 2.0-only providers by the OpenIddict client.
|
|
|
// To avoid that, the "openid" scope is manually added to indicate OpenID Connect is supported.
|
|
|
// To avoid that, the "openid" scope is manually added to indicate OpenID Connect is supported.
|
|
|
if (context.Registration.ProviderType is ProviderTypes.EpicGames or ProviderTypes.Xero) |
|
|
|
|
|
|
|
|
if (context.Registration.ProviderType is ProviderTypes.DocuSign) |
|
|
|
|
|
{ |
|
|
|
|
|
context.Configuration.ScopesSupported.Remove("OpenId"); |
|
|
|
|
|
context.Configuration.ScopesSupported.Add(Scopes.OpenId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
else if (context.Registration.ProviderType is ProviderTypes.EpicGames or ProviderTypes.Xero) |
|
|
{ |
|
|
{ |
|
|
context.Configuration.ScopesSupported.Add(Scopes.OpenId); |
|
|
context.Configuration.ScopesSupported.Add(Scopes.OpenId); |
|
|
} |
|
|
} |
|
|
|