It worked.  Thanks.

 

Another question, how do you recompile the client binary?  The problem I’m having is that I’m trying to retrieve an attribute from the CAS assertion.  When I call .getAttributes(), the returned Map is empty.  So, I added a line of code in the client that will write the response to the log so that I can see if the assertion actually contains the attribute.


I’m not sure if I’m using Maven correctly as I’m not that familiar with this program.  I type the command ‘mvn compile’ and I receive that following error:

 

[INFO] Scanning for projects...

Downloading: http://repo1.maven.org/maven2/org/jasig/cas/cas-client/3.0-rc1/cas-client-3.0-rc1.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

 

GroupId: org.jasig.cas

ArtifactId: cas-client

Version: 3.0-rc1

 

Reason: Unable to download the artifact from any repository

 

  org.jasig.cas:cas-client:pom:3.0-rc1

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2)

 

 

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jasig.cas:cas-client for project: org.jasig.cas:cas-client-core:ja

r:3.0-rc1

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

 

 

 

 

Thanks,

 

Chris

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Battaglia
Sent: Thursday, August 24, 2006 2:54 PM
To: Yale CAS mailing list
Subject: Re: JA-SIG CAS Java Client

 

It should work.  If you get a chance, though can you (or someone else) submit a feature request to our JIRA to add like a "compatibility" mode in to not add the jsession for older versions of CAS.  If anyone thinks that would be useful.

Thanks
-Scott

On 8/24/06, Christopher Brown <[EMAIL PROTECTED]> wrote:

I'm using 3.0.3.  I'll update and give it another shot.

 


From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Scott Battaglia
Sent: Thursday, August 24, 2006 11:29 AM


To: Yale CAS mailing list

Subject: Re: JA-SIG CAS Java Client

 

Chris,

What version of CAS are you using? CAS 3.0.5 and higher properly strip the jsession id if it is sent.

Thanks
-Scott

On 8/24/06, Christopher Brown <[EMAIL PROTECTED]> wrote:

I think I have figured out most of the client, but I'm having one problem.  I'm getting this response when the ticket is validated:

 

javax.servlet.ServletException:

            ticket 'ST-8-fwgINaEJ62f03hgUZTH6' does not match supplied service

     

      org.jasig.cas.client.web.filter.CasValidationFilter.doFilterInternal(CasValidationFilter.java:105)

      org.jasig.cas.client.web.filter.AbstractCasFilter.doFilter(AbstractCasFilter.java:93)

      org.jasig.cas.client.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:43)

      org.jasig.cas.client.web.filter.CasAuthenticationFilter.doFilterInternal(CasAuthenticationFilter.java:89)

      org.jasig.cas.client.web.filter.AbstractCasFilter.doFilter(AbstractCasFilter.java:93)

      org.jasig.cas.client.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:43)

 

My hunch is that perhaps the jessionid that gets appended to the serviceURL on the redirect to /cas/login is causing the problem.  Here's what gets sent on the initial redirect:

 

http://eauth.enspier.net:8080/samlharness/ui;jsessionid=DEE8EB1DA9B724D3C878051DA4FB40FA0?action="">

 

But the serviceURL that gets sent to /cas/serviceValidate is:

 

http://eauth.enspier.net:8080/samlharness/ui?action=""

 

Would this cause the exception above?  I've edited the bean in the config file, but the jsessionid still is appended to the URL. 

 

<bean

            id="casValidationFilter"

            class="org.jasig.cas.client.web.filter.CasValidationFilter">

          <constructor-arg index="0">

                <null/>

          </constructor-arg>

      <constructor-arg index="1" value="http://eauth.enspier.net:8080/samlharness/ui?action="" "/>

        <constructor-arg index="2" ref="ticketValidator"/>

    </bean>

 

 

Thanks

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Christopher Brown
Sent: Tuesday, August 22, 2006 9:22 AM
To: 'Yale CAS mailing list'
Subject: RE: JA-SIG CAS Java Client

 

Thanks for the quick reply.  I've used the Yale client previously, so I have

a little familiarity.  Just a couple questions.

 

 

-- Are all the jars in the bin directory required to run the client (I'm

using core)?

 

-- I'm not sure what the simpleFilterExample.xml is used for.  Is it

required?

 

-- I'm sending an extra attribute in the CAS assertion.  How do I access it

from the client?

 

-- What is the purpose of the validation filter?

 

Thanks,

 

Chris

 

 

-----Original Message-----

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On

Behalf Of Scott Battaglia

Sent: Monday, August 21, 2006 1:12 PM

To: Yale CAS mailing list

Subject: Re: JA-SIG CAS Java Client

 

Chris,

 

No, there is not yet.  That's one of the things to be done before the

final release (which is one reason why its still in RC).  Do you have

any specific questions you'd like answered?  I can answer them onlist

and then use that as the basis for the documentation.

 

Thanks

-Scott

 

Scott Battaglia

Application Developer, Architecture & Engineering Team

Enterprise Systems and Services, Rutgers University

v: 732.445.0097 | f: 732.445.5493 | [EMAIL PROTECTED]

 

 

 

Christopher Brown wrote:

> Is there any documentation for this client besides the examples in the

> resources directory?

> Chris Brown

> Enspier Technologies

> YIM: chrisbrown_enspier

> (O) 202-208-1550

> (C) 703-965-1176

> ------------------------------------------------------------------------

> _______________________________________________

> Yale CAS mailing list

> [email protected]

> http://tp.its.yale.edu/mailman/listinfo/cas

>  

_______________________________________________

Yale CAS mailing list

[email protected]

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

 

_______________________________________________

Yale CAS mailing list

[email protected]

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


_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

 


_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

 

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to