我对此连接有疑问。 我有一个方法登录()。该方法使用表单捕获用户数据。但我不知道如何获取令牌,然后将其发送到 zoho desk。 我的客户设置:
new Client
{
ClientId = "zoho.com",
ClientName = "Zoho Desk",
ClientSecrets =
{
new Secret("secret".Sha256())
},
AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,
AccessTokenType = AccessTokenType.Reference,
AlwaysIncludeUserClaimsInIdToken = true,
AlwaysSendClientClaims = true,
Enabled = true,
RequireConsent = false,
AllowOfflineAccess = true,
UpdateAccessTokenClaimsOnRefresh = true,
ClientUri = "zoho.com",
BackChannelLogoutUri = $"{coreSettings.ZohoSamlRequestUrl}",
PostLogoutRedirectUris = postLogoutRedirectUris,
RedirectUris = {$"{coreSettings.ZohoSamlResponseUrl}"},
RefreshTokenUsage = TokenUsage.ReUse,
RefreshTokenExpiration = TokenExpiration.Absolute,
IdentityTokenLifetime = 300,
AuthorizationCodeLifetime = 300,
AccessTokenLifetime = 3600,
AbsoluteRefreshTokenLifetime = coreSettings.AbsoluteRefreshTokenLifetimeInSeconds,
AllowedScopes =
{
StandardScopes.OpenId,
StandardScopes.Email,
StandardScopes.Profile
}
}
我收到消息“收到无效的 SAML 响应。”重定向到 https://accounts.zohoportal.com/accounts/csamlresponse/xxxxxxx
后SAML 是 IDS4 的付费选项https://www.identityserver.com/products/saml2p 但是,有一个免费的替代方案https://www.itfoxtec.com/identitysaml2