我们需要将我们的应用程序与Salesforce集成,以便为我们的客户实施单点登录 . 我们使用了此处提到的配置设置来使用.NET CAS Client .

我们能够通过单点登录集成和验证用户身份 . 但是,该站点会继续将经过身份验证的用户发送到我们的应用程序中的登录页面,然后重定向到主页 .

这种情况偶尔会发生,并且没有具体指标可用于检查来自各个页面的请求以进行身份验证并导致重定向 .

我们的配置是 -

<httpModules xdt:Transform="Insert">
    <add name="DotNetCasClient" type="DotNetCasClient.CasAuthenticationModule,DotNetCasClient" />
    </httpModules>
    ….
    ….
    <system.webServer>
        <modules xdt:Transform="Insert">
            <remove name="DotNetCasClient" />
            <add name="DotNetCasClient" type="DotNetCasClient.CasAuthenticationModule,DotNetCasClient" />
        </modules>
    </system.webServer>
    ….
    ….
    <configSections>
        <section name="casClientConfig" type="DotNetCasClient.Configuration.CasClientConfiguration, DotNetCasClient" />
    </configSections>
    ….
    ….

       <casClientConfig casServerLoginUrl="https://<sso.salesforceserver.url>/cas/login" 
                    casServerUrlPrefix="https://<sso.salesforceserver.url>/cas/"
                serverName="http://<app.server.url>/start/" 
                notAuthorizedUrl="~/not-authorized" 
                cookiesRequiredUrl="" 
                redirectAfterValidation="true"
                gateway="false" 
                renew="false" 
                singleSignOut="true" 
                ticketTimeTolerance="5000" 
                ticketValidatorName="Cas20"
                serviceTicketManager="CacheServiceTicketManager" 
                gatewayStatusCookieName="CasGatewayStatus" />
    ….

用户登录并开始使用该应用程序 . 用户被重定向到呈现SSO iframe的登录页面 . 由于用户已经过身份验证,因此SSO请求会重定向到已配置的成功通过身份验证的URL( serverName="http://<app.server.url>/start/

请帮助跟踪重定向问题并防止其发生 .

谢谢,