Thanks, Carlos.
I googled "service registry add" and came to this page:
https://wiki.jasig.org/display/CASUM/Services+Management

(1) When I tried "https://casURL:8443/cas/services/
I get
http://localhost:8080/cas/login?service=http%3A%2F%2Flocalhost%3A8080%2Fcas%2Fservices%2Fj_acegi_cas_security_check
With a warning "non-secure connection", which is understandable.

At this point, I entered credentials which work perfectly fine under normal 
circumstances (like when I enter https://casURL/cas/login), yet I got 

access denied "UsernameNotFoundException::user1"

Yet, when I checked catalina.out logs, I find that authentication has been 
successful 
, TGT has been created and service ticket created.


Here are the logs for the last two:


2013-02-28 11:19:54,978 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - 
<Granted service ticket [ST-1-rMm40520qHy3KX6oZSur-cas01.example.org] for 
service [http://localhost:8080/cas/services/j_acegi_cas_security_check] for 
user [user1]>
=============================================================
WHO: user1
WHAT: ST-1-rMm40520qHy3KX6oZSur-cas01.example.org for 
http://localhost:8080/cas/services/j_acegi_cas_security_check
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: date stuff
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>

=============================================================
WHO: audit:unknown
WHAT: ST-1-rMm40520qHy3KX6oZSur-cas01.example.org
ACTION: SERVICE_TICKET_VALIDATED
APPLICATION: CAS
WHEN: date stuff
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
============================================================= 

I am interested to know why the CAS denied access to me, but more than that I 
want to know how I can add the "helloWorldExample" to the service registry, so 
that I can proceed with the validation test with pattern 
"https://my.test.server.url/cas/login?service=foo";.


Cheers.


--- On Tue, 2013/2/19, Carlos Fernandez <[email protected]> wrote:

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

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