Re: cas-dev Digest, Vol 42, Issue 2

View: New views
8 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: cas-dev Digest, Vol 42, Issue 2

by Smita Vithal Kharkar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Meghana,

 

I am also trying the similar thing of configuring CAS for cross domain.

Have you been able to configure it atleast for one of the technologies so far?

 

---

Regards,

Smita

In matters of conscience, the law of majority has no place.

 

-----Original Message-----
From: cas-dev-bounces@... [mailto:cas-dev-bounces@...] On Behalf Of cas-dev-request@...
Sent: Saturday, May 03, 2008 9:30 PM
To: cas-dev@...
Subject: cas-dev Digest, Vol 42, Issue 2

 

Send cas-dev mailing list submissions to

        cas-dev@...

 

To subscribe or unsubscribe via the World Wide Web, visit

        http://tp.its.yale.edu/mailman/listinfo/cas-dev

or, via email, send a message with subject or body 'help' to

        cas-dev-request@...

 

You can reach the person managing the list at

        cas-dev-owner@...

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of cas-dev digest..."

 

 

Today's Topics:

 

   1. Does CAS support cross-domain functionality?

      (Meghana Reddy Janumpally)

 

 

----------------------------------------------------------------------

 

Message: 1

Date: Fri, 2 May 2008 13:26:07 -0700 (PDT)

From: Meghana Reddy Janumpally <meghana_janumpally@...>

Subject: [cas-dev] Does CAS support cross-domain functionality?

To: cas-dev@...

Message-ID: <90524.47468.qm@...>

Content-Type: text/plain; charset="iso-8859-1"

 

Hello,

 

I have a couple of questions on CAS. My application is multi domain. That means it has some jsp pages, php and also .net pages.

 I was wondering if CAS supports  these entire domains with single login.

 Also how does it integrate with  database?

 And if the user wants to signup for  news letters, or some information, does CAS handle   these?

 Please get back to me with the  answers.I really would appreciate your help.

 

 

 Regards,

 Meghana  Janumpally

 

 

 

 

 

 

---------------------------------

Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

-------------- next part --------------

An HTML attachment was scrubbed...

URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20080502/f16f86c9/attachment-0001.html

 

------------------------------

 

_______________________________________________

cas-dev mailing list

cas-dev@...

http://tp.its.yale.edu/mailman/listinfo/cas-dev

 

 

End of cas-dev Digest, Vol 42, Issue 2

**************************************

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

Re: cas-dev Digest, Vol 42, Issue 2

by Andrew R Feller :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Smita / Meghana,

 

If the hostname of the CAS server you are trying to access for each domain is the same, then you should be able to use CAS across multiple domains.  CAS works by assigning a cookie called a ticket granting cookie (TGC) with a randomly generated opaque string that the CAS server uses to determine if you are logged in or not.  If each application server is configured to use the same CAS server, then it should work fine.  This is because the ticket granting cookies (TGC) are used strictly by the CAS server; the application servers protected by CAS clients should never see it nor need to.

 

As for newsletters and other stuff, CAS does not support it as it is strictly a single sign on service.  If you’d like such features, then you should handle that on the application server side.

 

HTH,

 

Andrew R Feller, Analyst

University Information Systems

200 Fred Frey Building

Louisiana State University

Baton Rouge, LA, 70803

(225) 578-3737 (Office)

(225) 578-6400 (Fax)

 


From: cas-dev-bounces@... [mailto:cas-dev-bounces@...] On Behalf Of Smita Vithal Kharkar
Sent: Sunday, May 04, 2008 10:33 PM
To: 'cas-dev@...'
Subject: Re: [cas-dev] cas-dev Digest, Vol 42, Issue 2

 

Hi Meghana,

 

I am also trying the similar thing of configuring CAS for cross domain.

Have you been able to configure it atleast for one of the technologies so far?

 

---

Regards,

Smita

In matters of conscience, the law of majority has no place.

 

-----Original Message-----
From: cas-dev-bounces@... [mailto:cas-dev-bounces@...] On Behalf Of cas-dev-request@...
Sent: Saturday, May 03, 2008 9:30 PM
To: cas-dev@...
Subject: cas-dev Digest, Vol 42, Issue 2

 

Send cas-dev mailing list submissions to

        cas-dev@...

 

To subscribe or unsubscribe via the World Wide Web, visit

        http://tp.its.yale.edu/mailman/listinfo/cas-dev

or, via email, send a message with subject or body 'help' to

        cas-dev-request@...

 

You can reach the person managing the list at

        cas-dev-owner@...

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of cas-dev digest..."

 

 

Today's Topics:

 

   1. Does CAS support cross-domain functionality?

      (Meghana Reddy Janumpally)

 

 

----------------------------------------------------------------------

 

Message: 1

Date: Fri, 2 May 2008 13:26:07 -0700 (PDT)

From: Meghana Reddy Janumpally <meghana_janumpally@...>

Subject: [cas-dev] Does CAS support cross-domain functionality?

To: cas-dev@...

Message-ID: <90524.47468.qm@...>

Content-Type: text/plain; charset="iso-8859-1"

 

Hello,

 

I have a couple of questions on CAS. My application is multi domain. That means it has some jsp pages, php and also .net pages.

 I was wondering if CAS supports  these entire domains with single login.

 Also how does it integrate with  database?

 And if the user wants to signup for  news letters, or some information, does CAS handle   these?

 Please get back to me with the  answers.I really would appreciate your help.

 

 

 Regards,

 Meghana  Janumpally

 

 

 

 

 

 

---------------------------------

Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

-------------- next part --------------

An HTML attachment was scrubbed...

URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20080502/f16f86c9/attachment-0001.html

 

------------------------------

 

_______________________________________________

cas-dev mailing list

cas-dev@...

http://tp.its.yale.edu/mailman/listinfo/cas-dev

 

 

End of cas-dev Digest, Vol 42, Issue 2

**************************************

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

CAS for both jsp and .net pages

by Meghana Reddy Janumpally-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello All,

I am able to create some jsp pages on tomcat server and configure it with CAS using the demo http://www.ja-sig.org/wiki/display/CASUM/Demo. Similarly i need to create some .net pages and make the single sign on work for both these jsps and .net pages. I am completely new to .net. I have created simple .net page(on IIS) and it is working fine. Is there any demo to configure CAS with .net? also how to make a single CAS login to work with both jsp and .net pages running on different servers ? Please point me to appropriate information source. I appreciate your help.

 

Regards,

Meghana



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

Re: CAS for both jsp and .net pages

by Mark Rogers-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This page may be of some assistance.


- Mark

On 12-May-08, at 10:57 AM, Meghana Reddy Janumpally wrote:

Hello All,

I am able to create some jsp pages on tomcat server and configure it with CAS using the demo http://www.ja-sig.org/wiki/display/CASUM/Demo. Similarly i need to create some .net pages and make the single sign on work for both these jsps and .net pages. I am completely new to .net. I have created simple .net page(on IIS) and it is working fine. Is there any demo to configure CAS with .net? also how to make a single CAS login to work with both jsp and .net pages running on different servers ? Please point me to appropriate information source. I appreciate your help.

 

Regards,

Meghana



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
cas-dev mailing list


_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

Re: CAS for both jsp and .net pages

by Meghana Reddy Janumpally-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Mark,

Thanks for your reply. I was successful in creating a simple .net application using IIS. And I did almost all the changes mentioned in http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client (mentioned in Browser Based Authentication)except I couldnot understand where should (in while file) i should make the following changes(mentioned in Proxy Based Authentication) .

Could someone please let me know.

 

Proxy Based Authentication

To continue the examples, imagine you have a web service which returns user details pulled from a database and keyed on a userid.  You could have the web service take 2 parameters - a user name and a password - but that would mean that you would have to pass user credentials around.  Hitting your web service via SSL would be an improvement, but still far from ideal.  A better solution would be to take one parameter - a proxy ticket generated by CAS.  You could then use this CAS client to get the user name in the following way:

...
using DotNetCASClient;

...

[WebMethod]
    public String GetUserName(String ticket) {
	//The first argument in the constructor is the service against which you trying to validate
	//The second argument is the proxy validation URL for your CAS server
        DotNetCASClientProxyValidate client
                = new DotNetCASClientProxyValidate("http://myawesomeservice.uwe.ac.uk", "https://casserver.uwe.ac.uk/cas/proxyValidate");
        String userid = client.Authenticate(ticket);
        return userid;
    }
...

Obviously, you would want to then use the username to retrieve details from the database and return them as well.  If the authentication fails then the returned user will be 'failed'. 

The DotNetCASClientProxyValidate class also has a GetCASXML method which also takes the ticket as a String.  This performs the same authentication process that the Authenticate() method does but, instead of returning an user name, it returns the full XML that CAS returned - for example:

<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
        <cas:authenticationSuccess>
              <cas:user>testUserName</cas:user>
                <cas:proxies>
                       <cas:proxy>https://myawesomecasproxyplace/cas/pgtURL.asp</cas:proxy>
              </cas:proxies>
        </cas:authenticationSuccess>
 </cas:serviceResponse>

 This particularly useful if you want to access more data than just the user name - especially if your CAS is configured to return other user information as well.

 

 

Regards,

Meghana



--- On Mon, 5/12/08, Mark Rogers <mark_rogers@...> wrote:

From: Mark Rogers <mark_rogers@...>
Subject: Re: [cas-dev] CAS for both jsp and .net pages
To: meghana.janumpally@..., "Mailing list for CAS developers" <cas-dev@...>
Date: Monday, May 12, 2008, 4:11 PM

This page may be of some assistance.


- Mark

On 12-May-08, at 10:57 AM, Meghana Reddy Janumpally wrote:

Hello All,

I am able to create some jsp pages on tomcat server and configure it with CAS using the demo http://www.ja-sig.org/wiki/display/CASUM/Demo. Similarly i need to create some .net pages and make the single sign on work for both these jsps and .net pages. I am completely new to .net. I have created simple .net page(on IIS) and it is working fine. Is there any demo to configure CAS with .net? also how to make a single CAS login to work with both jsp and .net pages running on different servers ? Please point me to appropriate information source. I appreciate your help.

 

Regards,

Meghana



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
cas-dev mailing list



_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

CAS for .net application

by Meghana Reddy Janumpally-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello All,

Can someone please let me know if anyone has configured CAS with .net application. If so which documentation did you follow. I could find so many documentations  llike http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client, http://www.ja-sig.org/wiki/display/CASC/.Net+Http+module, http://www.tamu.edu/CAS/libraries/net/ but none of them worked for me. Can some one help me in this regards.

 

Thanks,

Meghana

--- On Tue, 5/13/08, Meghana Reddy Janumpally <meghana.janumpally@...> wrote:

From: Meghana Reddy Janumpally <meghana.janumpally@...>
Subject: Re: [cas-dev] CAS for both jsp and .net pages
To: "Mailing list for CAS developers" <cas-dev@...>, "Mark Rogers" <mark_rogers@...>
Date: Tuesday, May 13, 2008, 4:57 PM

Hello Mark,

Thanks for your reply. I was successful in creating a simple .net application using IIS. And I did almost all the changes mentioned in http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client (mentioned in Browser Based Authentication)except I couldnot understand where should (in while file) i should make the following changes(mentioned in Proxy Based Authentication) .

Could someone please let me know.

 

Proxy Based Authentication

To continue the examples, imagine you have a web service which returns user details pulled from a database and keyed on a userid.  You could have the web service take 2 parameters - a user name and a password - but that would mean that you would have to pass user credentials around.  Hitting your web service via SSL would be an improvement, but still far from ideal.  A better solution would be to take one parameter - a proxy ticket generated by CAS.  You could then use this CAS client to get the user name in the following way:

...
using DotNetCASClient;

...

[WebMethod]
    public String GetUserName(String ticket) {
	//The first argument in the constructor is the service against which you trying to validate
	//The second argument is the proxy validation URL for your CAS server
        DotNetCASClientProxyValidate client
                = new DotNetCASClientProxyValidate("http://myawesomeservice.uwe.ac.uk", "https://casserver.uwe.ac.uk/cas/proxyValidate");
        String userid = client.Authenticate(ticket);
        return userid;
    }
...

Obviously, you would want to then use the username to retrieve details from the database and return them as well.  If the authentication fails then the returned user will be 'failed'. 

The DotNetCASClientProxyValidate class also has a GetCASXML method which also takes the ticket as a String.  This performs the same authentication process that the Authenticate() method does but, instead of returning an user name, it returns the full XML that CAS returned - for example:

<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
        <cas:authenticationSuccess>
              <cas:user>testUserName</cas:user>
                <cas:proxies>
                       <cas:proxy>https://myawesomecasproxyplace/cas/pgtURL.asp</cas:proxy>
              </cas:proxies>
        </cas:authenticationSuccess>
 </cas:serviceResponse>

 This particularly useful if you want to access more data than just the user name - especially if your CAS is configured to return other user information as well.

 

 

Regards,

Meghana



--- On Mon, 5/12/08, Mark Rogers <mark_rogers@...> wrote:

From: Mark Rogers <mark_rogers@...>
Subject: Re: [cas-dev] CAS for both jsp and .net pages
To: meghana.janumpally@..., "Mailing list for CAS developers" <cas-dev@...>
Date: Monday, May 12, 2008, 4:11 PM

This page may be of some assistance.


- Mark

On 12-May-08, at 10:57 AM, Meghana Reddy Janumpally wrote:

Hello All,

I am able to create some jsp pages on tomcat server and configure it with CAS using the demo http://www.ja-sig.org/wiki/display/CASUM/Demo. Similarly i need to create some .net pages and make the single sign on work for both these jsps and .net pages. I am completely new to .net. I have created simple .net page(on IIS) and it is working fine. Is there any demo to configure CAS with .net? also how to make a single CAS login to work with both jsp and .net pages running on different servers ? Please point me to appropriate information source. I appreciate your help.

 

Regards,

Meghana



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
cas-dev mailing list


_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev


_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

Re: CAS for .net application

by Paul Hunnisett-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What problems did you encounter with the .Net client?  It would be
easier to provide help if you can give us details of your problems...

Cheers

Paul Hunnisett

Meghana Reddy Janumpally wrote:

> Hello All,
>
> Can someone please let me know if anyone has configured CAS with .net
> application. If so which documentation did you follow. I could find so many
> documentations  llike http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client,
> http://www.ja-sig.org/wiki/display/CASC/.Net+Http+module,
> http://www.tamu.edu/CAS/libraries/net/ but none of them worked for me. Can some
> one help me in this regards.
>
>  
>
> Thanks,
>
> Meghana
>
> --- On *Tue, 5/13/08, Meghana Reddy Janumpally /<meghana.janumpally@...>/*
> wrote:
>
>     From: Meghana Reddy Janumpally <meghana.janumpally@...>
>     Subject: Re: [cas-dev] CAS for both jsp and .net pages
>     To: "Mailing list for CAS developers" <cas-dev@...>, "Mark
>     Rogers" <mark_rogers@...>
>     Date: Tuesday, May 13, 2008, 4:57 PM
>
>     Hello Mark,
>
>     Thanks for your reply. I was successful in creating a simple .net
>     application using IIS. And I did almost all the changes mentioned in
>     http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client (mentioned in
>     *Browser Based Authentication*)except I couldnot understand where should (in
>     while file) i should make the following changes(mentioned in *Proxy Based
>     Authentication*) .
>
>     Could someone please let me know.
>
>      
>
>     *Proxy Based Authentication*
>
>     To continue the examples, imagine you have a web service which returns user
>     details pulled from a database and keyed on a userid.  You could have the
>     web service take 2 parameters - a user name and a password - but that would
>     mean that you would have to pass user credentials around.  Hitting your web
>     service via SSL would be an improvement, but still far from ideal.  A better
>     solution would be to take one parameter - a proxy ticket generated by CAS.
>     You could then use this CAS client to get the user name in the following way:
>
>     ...
>     using DotNetCASClient;
>
>     ...
>
>     [WebMethod]
>         public String GetUserName(String ticket) {
>     //The first argument in the constructor is the service against which you trying to validate
>     //The second argument is the proxy validation URL for your CAS server
>             DotNetCASClientProxyValidate client
>                     = new DotNetCASClientProxyValidate("http://myawesomeservice.uwe.ac.uk", "https://casserver.uwe.ac.uk/cas/proxyValidate");
>             String userid = client.Authenticate(ticket);
>             return userid;
>         }
>     ...
>
>     Obviously, you would want to then use the username to retrieve details from
>     the database and return them as well.  If the authentication fails then the
>     returned user will be 'failed'.
>
>     The DotNetCASClientProxyValidate class also has a GetCASXML method which
>     also takes the ticket as a String.  This performs the same authentication
>     process that the Authenticate() method does but, instead of returning an
>     user name, it returns the full XML that CAS returned - for example:
>
>     <cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
>             <cas:authenticationSuccess>
>                   <cas:user>testUserName</cas:user>
>                     <cas:proxies>
>                            <cas:proxy>https://myawesomecasproxyplace/cas/pgtURL.asp</cas:proxy>
>                   </cas:proxies>
>             </cas:authenticationSuccess>
>      </cas:serviceResponse>
>
>      This particularly useful if you want to access more data than just the user
>     name - especially if your CAS is configured to return other user information
>     as well.
>
>      
>
>      
>
>     Regards,
>
>     Meghana
>
>
>
>     --- On *Mon, 5/12/08, Mark Rogers /<mark_rogers@...>/* wrote:
>
>         From: Mark Rogers <mark_rogers@...>
>         Subject: Re: [cas-dev] CAS for both jsp and .net pages
>         To: meghana.janumpally@..., "Mailing list for CAS developers"
>         <cas-dev@...>
>         Date: Monday, May 12, 2008, 4:11 PM
>
>         This page may be of some assistance.
>
>         http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client
>
>         - Mark
>
>         On 12-May-08, at 10:57 AM, Meghana Reddy Janumpally wrote:
>
>>         Hello All,
>>
>>         I am able to create some jsp pages on tomcat server and configure it
>>         with CAS using the demo http://www.ja-sig.org/wiki/display/CASUM/Demo.
>>         Similarly i need to create some .net pages and make the single sign on
>>         work for both these jsps and .net pages. I am completely new to .net.
>>         I have created simple .net page(on IIS) and it is working fine. Is
>>         there any demo to configure CAS with .net? also how to make a single
>>         CAS login to work with both jsp and .net pages running on different
>>         servers ? Please point me to appropriate information source. I
>>         appreciate your help.
>>
>>          
>>
>>         Regards,
>>
>>         Meghana
>>
>>
>>         --------------------------------------------------------------------------------
>>         Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
>>         it now.
>>         <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
>>
>>         _______________________________________________
>>         cas-dev mailing list
>>         cas-dev@... <mailto:cas-dev@...>
>>         http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
>
>     _______________________________________________
>     cas-dev mailing list
>     cas-dev@...
>     http://tp.its.yale.edu/mailman/listinfo/cas-dev
>
>
> --------------------------------------------------------------------------------
> This incoming email to UWE has been independently scanned for viruses by McAfee
> anti-virus software and none were detected
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cas-dev mailing list
> cas-dev@...
> http://tp.its.yale.edu/mailman/listinfo/cas-dev


This email was independently scanned for viruses by McAfee anti-virus software and none were found
_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev

Re: CAS for .net application

by Meghana Reddy Janumpally-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Paul,

I dont see any CAS login page. I directly see the .net page when i acess the .net page.

 

Regards,

Meghana

--- On Wed, 5/14/08, Paul Hunnisett <Paul.Hunnisett@...> wrote:

From: Paul Hunnisett <Paul.Hunnisett@...>
Subject: Re: [cas-dev] CAS for .net application
To: meghana.janumpally@..., "Mailing list for CAS developers" <cas-dev@...>
Date: Wednesday, May 14, 2008, 7:40 AM

What problems did you encounter with the .Net client?  It would be
easier to provide help if you can give us details of your problems...

Cheers

Paul Hunnisett

Meghana Reddy Janumpally wrote:
> Hello All,
> 
> Can someone please let me know if anyone has configured CAS with .net 
> application. If so which documentation did you follow. I could find so
many 
> documentations  llike
http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client, 
> http://www.ja-sig.org/wiki/display/CASC/.Net+Http+module, 
> http://www.tamu.edu/CAS/libraries/net/ but none of them worked for me. Can
some 
> one help me in this regards.
> 
>  
> 
> Thanks,
> 
> Meghana
> 
> --- On *Tue, 5/13/08, Meghana Reddy Janumpally
/<meghana.janumpally@...>/* 
> wrote:
> 
>     From: Meghana Reddy Janumpally <meghana.janumpally@...>
>     Subject: Re: [cas-dev] CAS for both jsp and .net pages
>     To: "Mailing list for CAS developers"
<cas-dev@...>, "Mark
>     Rogers" <mark_rogers@...>
>     Date: Tuesday, May 13, 2008, 4:57 PM
> 
>     Hello Mark,
> 
>     Thanks for your reply. I was successful in creating a simple .net
>     application using IIS. And I did almost all the changes mentioned in
>     http://www.ja-sig.org/wiki/display/CASC/.Net+Cas+Client (mentioned in
>     *Browser Based Authentication*)except I couldnot understand where
should (in
>     while file) i should make the following changes(mentioned in *Proxy
Based
>     Authentication*) .
> 
>     Could someone please let me know.
> 
>      
> 
>     *Proxy Based Authentication*
> 
>     To continue the examples, imagine you have a web service which returns
user
>     details pulled from a database and keyed on a userid.  You could have
the
>     web service take 2 parameters - a user name and a password - but that
would
>     mean that you would have to pass user credentials around.  Hitting
your web
>     service via SSL would be an improvement, but still far from ideal.  A
better
>     solution would be to take one parameter - a proxy ticket generated by
CAS. 
>     You could then use this CAS client to get the user name in the
following way:
> 
>     ...
>     using DotNetCASClient;
> 
>     ...
> 
>     [WebMethod]
>         public String GetUserName(String ticket) {
>     	//The first argument in the constructor is the service against which
you trying to validate
>     	//The second argument is the proxy validation URL for your CAS server
>             DotNetCASClientProxyValidate client
>                     = new
DotNetCASClientProxyValidate("http://myawesomeservice.uwe.ac.uk",
"https://casserver.uwe.ac.uk/cas/proxyValidate");
>             String userid = client.Authenticate(ticket);
>             return userid;
>         }
>     ...
> 
>     Obviously, you would want to then use the username to retrieve details
from
>     the database and return them as well.  If the authentication fails
then the
>     returned user will be 'failed'. 
> 
>     The DotNetCASClientProxyValidate class also has a GetCASXML method
which
>     also takes the ticket as a String.  This performs the same
authentication
>     process that the Authenticate() method does but, instead of returning
an
>     user name, it returns the full XML that CAS returned - for example:
> 
>     <cas:serviceResponse
xmlns:cas="http://www.yale.edu/tp/cas">
>             <cas:authenticationSuccess>
>                   <cas:user>testUserName</cas:user>
>                     <cas:proxies>
>                           
<cas:proxy>https://myawesomecasproxyplace/cas/pgtURL.asp</cas:proxy>
>                   </cas:proxies>
>             </cas:authenticationSuccess>
>      </cas:serviceResponse>
> 
>      This particularly useful if you want to access more data than just
the user
>     name - especially if your CAS is configured to return other user
information
>     as well.
> 
>      
> 
>      
> 
>     Regards,
> 
>     Meghana
> 
> 
> 
>     --- On *Mon, 5/12/08, Mark Rogers /<mark_rogers@...>/*
wrote:
> 
>         From: Mark Ro