Try turning on the tracing built in to the .NET client and post those logs
back.  Assuming it's not a cookie problem, it should shed some more insight
into why it's redirecting back out to the CAS server.

I might have mislead you with the IE/Chrome test.  I'm not 100% sure that
would confirm it.  If your CAS server's SSL certificate is valid, not
expired, and issued by a > $7/yr CA, this is probably barking up the wrong
tree.  But if you're using one of the cheaper CA's, a self-signed cert, or
an enterprise CA, this is a very common cause for redirect issues.

The comments in the example web.config show how to turn the tracing on.  Be
sure to grant whatever identity your app pool is running as write
permissions to the log file.
https://github.com/Jasig/dotnet-cas-client/blob/master/ExampleWebSite/web.config.sample


On Mon, Nov 4, 2013 at 12:29 PM, Lehman, Jason <[email protected]> wrote:

>  1)      This doesn’t seem to be the issue because I went to the server
> using IE and Chrome and I didn’t receive a certificate error.
>
> 2)      Removing the path didn’t stop the loop when using credentials
> without the attributes but login in with credentials with the attributes
> worked fine.
>
> 3)      As soon as I removed the serviceTicketManager and
> singleSignout=”true” .NET thru up an error saying that was a required
> attribute for single signout. So instead I set singleSignout=”false” and
> removed serviceTicketManager and the redirect still occurs when using
> credentials that don’t have the attribute assigned but works fine for
> credentials that do have the attribute.
>
>
>
> Anything else I should try?
>
>
>
> Thanks for the help.
>
>
>
>
>
>
>
> *From:* Scott [mailto:[email protected]]
> *Sent:* Monday, November 04, 2013 11:44 AM
>
> *To:* [email protected]
> *Subject:* Re: [cas-dev] CAS .NET Client Redirect Loop and Attributes
>
>
>
> Here are a few things to change to see if it eliminates the problem.  All
> three of them can cause redirect loops.  If you end up having to turn off a
> feature that you want to use in order to resolve the problem, post back to
> the list and I'll be happy to help you configure it properly.
>
>
>
> 1) Verify that the SSL certificate installed on your CAS server is trusted
> by Windows.  If IE or Chrome shows a security warning when you browse to
> your CAS server, the HTTP client connection that happens as part of the
> service ticket validation will also fail.  Similarly, if the CAS server
> doesn't trust the SSL certificate on your web server, proxy ticket support
> won't be possible.
>
>
>
> 2) Try removing the following from authentication/forms in web.config:
> path="/iUSF/".  Restricting the cookie path is a good idea when your web
> server is hosting more than 1 application and you want them to be isolated
> wrt. authentication, but if configured incorrectly, it will result in a
> redirect loop as well.
>
>
>
> 3) Try removing the following from casAuthentication in web.config:
> singleSignout="true", serviceTicketManager="CacheServiceTicketManager".
>  This is particularly important if you have more than one web server in
> your application.  CacheServiceTicketManager isn't suitable for multiple
> web servers.  When it's enabled, it stores information about the
> outstanding valid tickets in memory on the web server.  If the ticket was
> validated on one server but a subsequent request was handled by another,
> the validation would fail (the cookie details won't be in memory on that
> server and the cookie will be ignored).  You could end up in a redirect
> loop there as well.  To get around this, you could implement your own
> IServiceTicketManager with a sql/memcached/redis back-end that all your
> servers share access to.
>
>
>
> -Scott
>
>
>
> On Mon, Nov 4, 2013 at 10:38 AM, Lehman, Jason <[email protected]> wrote:
>
> I have attached the requested files.
>
>
> -----Original Message-----
> From: Marvin Addison [mailto:[email protected]]
> Sent: Monday, November 04, 2013 9:34 AM
> To: [email protected]
> Subject: Re: [cas-dev] CAS .NET Client Redirect Loop and Attributes
>
> > If I login with a user that doesn't have an attribute I'm expecting
> > using the CAS .NET client I get into a redirect loop.
>
> Please post your config and an HTTP header trace from an authentication
> attempt. That should help clarify whether it's a bug, configuration matter,
> or a mix of bad behavior in the face of configuration for which we might
> want to file an improvement issue.
>
> M
>
> --
>
> You are currently subscribed to [email protected] as:
> [email protected] To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>
>
> --
> You are currently subscribed to [email protected] as: [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>  --
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to