Hi,
add p:allowedToProxy="true" in your RegexRegisteredService bean


Le 25/03/2016 08:53, Jahid Shohel a écrit :
Hi Ray,

Actually I can't see anything when I browse to "https://localhost:8443/cas/services";. Just as a side note, my configuration is like below -


*_CAS:_* Running on "*https://localhost:8443*"; through maven jetty
*_Client:_* Running on "*https://localhost:8441*"; through maven jetty.

CAS and Client are two different JVM process. Now when I try to browse "https:localhost:8443/cas/services", I see nothing. First time it asked me to login, and then when I logged in, it just keep saying "you are logged in".




On Friday, March 25, 2016 at 2:26:36 AM UTC+1, Ray Bon wrote:

    You can access with https://localhost:8441/cas/services
    <https://localhost:8441/cas/services>
    All services served by CAS must be in the registry.

    Ray

    On Fri, 2016-03-25 at 02:19 +0100, Jahid Shohel wrote:

    Hi Ray,

    I just posted what all i have. How do i add hello-world-webapp to
    service registry?

    On Mar 25, 2016 02:14, "Ray Bon" <[email protected] <javascript:>> wrote:
    Is hello-world-webapp allowed to proxy in service registry?

    Ray

    On Thu, 2016-03-24 at 17:35 -0700, Jahid Shohel wrote:
    Hi,

    I am working on cas client. I get below given exception -


    org.jasig.cas.client.validation.TicketValidationException:
                 The supplied service 'https://localhost:8441/hello-world-webapp/  
<https://localhost:8441/hello-world-webapp/>' is not authorized to use CAS 
proxy authentication.
at org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseResponseFromServer(Cas20ServiceTicketValidator.java:84)
        at 
org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:201)
        at 
org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:204)
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332)
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at 
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
        at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
        at org.eclipse.jetty.server.Server.handle(Server.java:348)
        at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
        at 
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)
        at 
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884)
        at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java
    On server side, registered service list is like-

    <util:listid="registeredServicesList">
         <beanclass="org.jasig.cas.services.RegexRegisteredService"
               p:id="0"p:name="HTTP and IMAP"p:description="Allows HTTP(S) and 
IMAP(S) protocols"
               p:serviceId="^(https?|imaps?)://.*"p:evaluationOrder="10000001"/>
    </util:list>

    Anyone knows why I am getting this exception?

    Thanks in advance.

    //Jahid

--
You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.


--
*Vincent REPAIN
Centre de ressources informatiques
* Tél. : +33 (0)2 23 23 83 31

20 avenue des Buttes de Coësmes
CS 70839 - 35 708 RENNES Cedex 7
www.insa-rennes.fr <http://www.insa-rennes.fr>

--
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Reply via email to