Hi, It seems so. There is no magic: if the CAS server has not sent any attribute, you won't get any in your CommonProfile.
Thanks. Best regards, Jérôme 2015-11-30 10:31 GMT+01:00 holmbergius [via Shiro User] < [email protected]>: > Thanks for your reply. > > I did try that method (below) and received only null for all values of > that CommonProfile. Could the CS server be the culprit? > > CommonProfile commonProfile = (CommonProfile) > SecurityUtils.getSubject().getPrincipals().asList().get(1); > > > Jason Holmberg > Wildbook for Whale Sharks > http://www.whaleshark.org > > On Mon, Nov 30, 2015 at 4:28 AM, jleleu [via Shiro User] <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=7580873&i=0>> wrote: > >> Hi, >> >> As stated on the README: >> https://github.com/bujiio/buji-pac4j#get-the-user-profile, the second >> principal is the user profile you can cast to CommonProfile. >> >> Thanks. >> Best regards, >> Jérôme >> >> >> 2015-11-30 9:37 GMT+01:00 holmbergius [via Shiro User] <[hidden email] >> <http:///user/SendEmail.jtp?type=node&node=7580872&i=0>>: >> >>> Made progress by switching to buji-pac4j as my plugin. Not sure why, but >>> I at least get Authentication now and >>> SecurityUtils.getSubject().getPrinicpal() returns: >>> >>> CasProfile#admin >>> >>> From a J2E context using buji-pac4j...anyone know how I might get a >>> populated CommonProfile? I am assuming I need a method that takes in the >>> request object. >>> >>> Thank you! >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the discussion >>> below: >>> >>> http://shiro-user.582556.n2.nabble.com/404-on-shiro-cas-tp7580860p7580868.html >>> To start a new topic under Shiro User, email [hidden email] >>> <http:///user/SendEmail.jtp?type=node&node=7580872&i=1> >>> To unsubscribe from Shiro User, click here. >>> 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> >>> >> >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://shiro-user.582556.n2.nabble.com/404-on-shiro-cas-tp7580860p7580872.html >> To unsubscribe from 404 on /shiro-cas, click here. >> 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> >> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://shiro-user.582556.n2.nabble.com/404-on-shiro-cas-tp7580860p7580873.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.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/404-on-shiro-cas-tp7580860p7580874.html Sent from the Shiro User mailing list archive at Nabble.com.
