final Assertion assertion = this.ticketValidator.validate(ticket, contextualCallbackUrl);
final AttributePrincipal principal = assertion.getPrincipal();
logger.debug("principal : {}", principal);
final CasProfile casProfile;
if (this.casProxyReceptor != null) {
casProfile = new CasProxyProfile();
} else {
casProfile = new CasProfile();
}
casProfile.setId(principal.getName());
casProfile.addAttributes(principal.getAttributes());