You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by jleleu <le...@gmail.com> on 2014/03/24 20:05:06 UTC

Re: CAS and Shiro Integration Issue

Hi,

Considering you are redirected back to the CAS server after a successful
login, you are trapped in an infinite loop.
Would you mind enabling the DEBUG logs on /org.jasig.cas/ (in your
application) to see why the service ticket validation with the CAS server
fails?
Thanks.
Best regards,
Jérôme




--
View this message in context: http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7579824.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: CAS and Shiro Integration Issue

Posted by jleleu <le...@gmail.com>.
Hi,

The shiro-cas module is based on the CAS client v3.2.2, which has a
dependency on log4j. It's not a very old version, but it's not the latest
one as you can find in buji-pac4j.

Thanks.
Best regards,
Jérôme


2015-11-29 19:00 GMT+01:00 holmbergius [via Shiro User] <
ml-node+s582556n7580867h45@n2.nabble.com>:

> Is log4j a requirement of the shiro CAS plugin?
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7580867.html
> To start a new topic under Shiro User, email
> ml-node+s582556n582556h4@n2.nabble.com
> To unsubscribe from Shiro User, click here
> <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=582556&code=bGVsZXVqQGdtYWlsLmNvbXw1ODI1NTZ8LTExNzY2MzcxMTY=>
> .
> NAML
> <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7580871.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: CAS and Shiro Integration Issue

Posted by holmbergius <ho...@gmail.com>.
Is log4j a requirement of the shiro CAS plugin?



--
View this message in context: http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7580867.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: CAS and Shiro Integration Issue

Posted by jleleu <le...@gmail.com>.
Hi,

Following the stack trace, I think it comes from the fact that you have not
defined the *failureUrl *in the *CasFilter*.
Would you mind fixing that and re-testing?
Thanks.
Best regards,
Jérôme



2014-03-25 9:45 GMT+01:00 sekhar4233 [via Shiro User] <
ml-node+s582556n7579829h67@n2.nabble.com>:

> I enable the ALL logs in my Client Application. This is my logback.xml
> file.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
>         <appender name="STDOUT"
> class="ch.qos.logback.core.ConsoleAppender">
>
>                 <encoder>
>                         <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level
> %logger{36} - %msg%n
>                         </pattern>
>                 </encoder>
>         </appender>
>
>         <logger name="org.jasig.cas" level="ALL">
>                 <appender-ref ref="STDOUT" />
>         </logger>
>
>         <logger name="org.apache.shiro" level="ALL">
>                 <appender-ref ref="STDOUT" />
>         </logger>
> </configuration>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7579829.html
>  To start a new topic under Shiro User, email
> ml-node+s582556n582556h4@n2.nabble.com
> To unsubscribe from Shiro User, click here<http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=582556&code=bGVsZXVqQGdtYWlsLmNvbXw1ODI1NTZ8LTExNzY2MzcxMTY=>
> .
> NAML<http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7579830.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: CAS and Shiro Integration Issue

Posted by jleleu <le...@gmail.com>.
Hi,

Sorry to insist, but I don't see any *org.jasig.cas*... logs which could
tell us what's going on inside the CAS client?
Best,
Jérôme



2014-03-25 7:14 GMT+01:00 sekhar4233 [via Shiro User] <
ml-node+s582556n7579827h5@n2.nabble.com>:

> These are the last lines of my DEBUG logs
>
> 11:42:54.351 ["http-bio-8080"-exec-7] TRACE
> o.a.s.s.support.DelegatingSubject - attempting to get session; create =
> false; session is null = false; session has id = true
> 11:42:54.351 ["http-bio-8080"-exec-7] TRACE
> o.a.s.authc.AbstractAuthenticator - Authentication attempt received for
> token [org.apache.shiro.cas.CasToken@2e759230]
> 11:42:54.365 ["http-bio-8080"-exec-7] TRACE
> o.a.shiro.web.servlet.SimpleCookie - calculated path: /CASShiro
> 11:42:54.366 ["http-bio-8080"-exec-7] DEBUG
> o.a.shiro.web.servlet.SimpleCookie - Added HttpServletResponse Cookie
> [rememberMe=deleteMe; Path=/CASShiro; Max-Age=0; Expires=Mon, 24-Mar-2014
> 06:12:54 GMT]
> 11:42:54.366 ["http-bio-8080"-exec-7] TRACE
> o.a.shiro.web.servlet.SimpleCookie - Removed 'rememberMe' cookie by setting
> maxAge=0
> 11:42:54.366 ["http-bio-8080"-exec-7] TRACE
> org.apache.shiro.util.ThreadContext - get() - in thread
> ["http-bio-8080"-exec-7]
> 11:42:54.366 ["http-bio-8080"-exec-7] TRACE
> org.apache.shiro.util.ThreadContext - Retrieved value of type
> [org.apache.shiro.web.subject.support.WebDelegatingSubject] for key
> [org.apache.shiro.util.ThreadContext_SUBJECT_KEY] bound to thread
> ["http-bio-8080"-exec-7]
> 11:42:54.367 ["http-bio-8080"-exec-7] TRACE
> o.a.s.s.support.DelegatingSubject - attempting to get session; create =
> false; session is null = false; session has id = true
> 11:42:54.367 ["http-bio-8080"-exec-7] TRACE
> o.a.shiro.web.servlet.AdviceFilter - Successfully invoked afterCompletion
> method.
> 11:42:54.367 ["http-bio-8080"-exec-7] DEBUG
> o.a.shiro.web.servlet.AdviceFilter - Filter execution resulted in an
> unexpected Exception (not IOException or ServletException as the Filter API
> recommends).  Wrapping in ServletException and propagating.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7579827.html
>  To start a new topic under Shiro User, email
> ml-node+s582556n582556h4@n2.nabble.com
> To unsubscribe from Shiro User, click here<http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=582556&code=bGVsZXVqQGdtYWlsLmNvbXw1ODI1NTZ8LTExNzY2MzcxMTY=>
> .
> NAML<http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://shiro-user.582556.n2.nabble.com/CAS-and-Shiro-Integration-Issue-tp7579823p7579828.html
Sent from the Shiro User mailing list archive at Nabble.com.