Hi,
For the implementation of the password expiry, we added some code to the core
of CAS to be able to fetch the principal in a later stage.
We added a method getPrincipal() in the 'CentralAuthenicationService' and its
implementation in the 'CentralAuthenicationImpl' and
'RemoteCentralAuthenicationService'. Further on, we use this method in
'AuthenticationViaForm' to put the principal in the flowscope.
These small changes are summarized below or can be viewed in the attachments of
http://www.ja-sig.org/wiki/display/CAS/Expired+Password+Integration.
Is it possible to get them included in the CAS3 packages?
Kind regards,
Johan Peeters
* 'CentralAuthenticationService.java', add the method:
public Principal getPrincipal(String id);
* 'CentralAuthenticationServiceImpl.java', add the method:
public Principal getPrincipal(String id){
Principal principal =
((TicketGrantingTicket)ticketRegistry.getTicket(id)).getAuthentication().getPrincipal();
return principal;
}
* 'RemoteCentralAuthenticationService.java', add the method:
public Principal getPrincipal(String id){
return this.centralAuthenticationService.getPrincipal(id);
}
* 'AuthenticationViaFormAction.java' add at line 110:
context.getFlowScope().put("principal",
this.centralAuthenticationService.getPrincipal(id));
_________________________________________________________________
Waarom betalen om foto's en video's te bewerken, e-mails te lezen, te bloggen
enz…? Met Windows Live is dit allemaal gratis!
http://www.microsoft.com/belux/nl/windows/windowslive/default.aspx
--
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