如何设置 ZohoDesk 和身份服务器?

问题描述 投票:0回答:1

我对此连接有疑问。 我有一个方法登录()。该方法使用表单捕获用户数据。但我不知道如何获取令牌,然后将其发送到 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

asp.net-core identityserver4 zoho
1个回答
0
投票

SAML 是 IDS4 的付费选项https://www.identityserver.com/products/saml2p 但是,有一个免费的替代方案https://www.itfoxtec.com/identitysaml2

© www.soinside.com 2019 - 2024. All rights reserved.