Hello,


The error message indicates that the URL specified in the /cas/login 
“service” parameter does not match any of the entries in the service 
registry. If, for example, you have an entry in the service registry with 
the following URL:



https://my.test.server.url/examples/servlets/servlet/HelloWorldExample



then the CAS login URL would be:



https://my.test.server.url/cas/login?service=https%3A%2F%2Fmy.test.server.url%2Fexamples%2Fservlets%2Fservlet%2FHelloWorldExample



Please note that the URL in the “service” parameter is URL-encoded.



Best regards,

--

Carlos.



From: [email protected] [mailto:[email protected]]
Sent: Monday, 18 February, 2013 13:42
To: [email protected]
Subject: [cas-user] Running validation tests with built-in helloworld




Hi all,
I am trying to run validation test with "helloworld". This helloworld comes 
built-in when I install Tomcat, and is located at 
/webapps/examples/servlets.

When I add appropriate filters in web.xml of that helloworld "application", 
and
when I type the following url, I am taken to cas login screen.
https://my.test.server.url/examples/servlets/servlet/HelloWorldExample

After successful authentication, "Hello World!" is displayed.

I need to rewrite the above url as follows:
https://my.test.server.url/cas/login?service=foo

*****What would be the foo part?  <<-- This is my main question.

I tried:

https://my.test.server.url/cas/login?service=examples/servlets/servlet/HelloWorldExample,
 
but failed.
(error message: the application is not authorized to use cas)(approx. 
translation)

Server logs say:
WARN [org.jasig.cas.CentralAuthenticationServiceImpl] - <ServiceManagement: 
Unauthorized Service Access. Service [servlets/servlet/HelloWorldExample] 
not found in Service Registry.>
================================
WHO: testUser
WHAT: servlets/servlet/HelloWorldExample
ACTION: SERVICE_TICKET_NOT_CREATED
APPLICATION: CAS
================================

I want to run these steps: (from 
https://wiki.jasig.org/display/CAS/CAS+Functional+Tests)

1. visit /login?service=foo
2. enter correct credentials
3. you should be redirected to foo with a valid service ticket
4. visit /serviceValidate?service=foo&ticket=[ticket from Step 3]


Please help.
Thanks.

-- 
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-user

-- 
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-user

Reply via email to