Hi, By default, you have the tgtId in the webflow: https://github.com/Jasig/cas/blob/master/cas-server-webapp-support/src/main/java/org/jasig/cas/web/flow/InitialFlowSetupAction.java#L80. So you can inject the ticket registry and get the authentication and then the principal. Or you could use the addon from Unicon: https://github.com/Unicon/cas-addons/wiki/Authenticated-Principal-in-Generic-Success-Login-View . Best regards,
Jérôme LELEU Founder of CAS in the cloud: www.casinthecloud.com | Twitter: @leleuj Chairman of CAS: www.jasig.org/cas | Creator of pac4j: www.pac4j.org 2014-10-20 20:30 GMT+02:00 Carlos Olivera <[email protected]>: > Hi everybody, I'm customizing the Login workflow, and just right before > the end I need to perform some action, but I'm having troubles getting the > Principal. So my question is, how can I get the Principal in the "protected > Event doExecute(RequestContext context) throws Exception" method in an > Abstract Action? > > Thanks in advance. > > -- > 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
