Hi, This is usually the use case of the CAS proxy, but as the shiro-cas module does not support it, I would recommend you to use the buji-pac4j + pac4j-cas libraries. We had a comprehensive discussion about proxy support some times ago on the mailing list: http://shiro-user.582556.n2.nabble.com/Shiro-cas-proxying-td7579694.html. It's worth reading. Best regards, Jérôme
2014-03-26 13:32 GMT+01:00 sekhar4233 [via Shiro User] < [email protected]>: > Hi, > > We are having one Spring MVC application and Spring MVC REST API. > > We integrate the CAS login in Spring MVC application by following steps in > Shiro CAS integration. > After login to the Spring MVC application i call the MVC REST API > functions. I have to implement the authentication in Spring REST API using > CAS and Shiro. How can i do it. > > I store the ticket received from CAS using CASFilter after that i send the > ticket to the Spring REST API. If i write below code its giving error in > Spring REST API. > > CasToken objCasToken = new CasToken(token); > > Subject subject = SecurityUtils.getSubject(); > > subject.login(objCasToken); > > > org.jasig.cas.client.validation.TicketValidationException: > org.opensaml.SAMLException: ticket 'ST-4-raHk0MCbcy3gVwYAMF99-localhost' > not recognized > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://shiro-user.582556.n2.nabble.com/Shiro-CAS-integration-tp7579837.html > To start a new topic under Shiro User, email > [email protected] > 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/Shiro-CAS-integration-tp7579837p7579852.html Sent from the Shiro User mailing list archive at Nabble.com.
