use of org.apereo.cas.support.claims.WrappingSecurityTokenServiceClaimsHandler in project cas by apereo.
the class CoreWsSecuritySecurityTokenServiceConfiguration method transportIssueDelegate.
@RefreshScope
@Bean
public IssueOperation transportIssueDelegate() {
final WsFederationProperties.SecurityTokenService wsfed = casProperties.getAuthn().getWsfedIdP().getSts();
final WsFederationProperties.IdentityProvider idp = casProperties.getAuthn().getWsfedIdP().getIdp();
final ClaimsManager claimsManager = new ClaimsManager();
claimsManager.setClaimHandlers(Arrays.asList(new WrappingSecurityTokenServiceClaimsHandler(idp.getRealmName(), wsfed.getRealm().getIssuer())));
final TokenIssueOperation op = new TokenIssueOperation();
op.setTokenProviders(transportTokenProviders());
op.setServices(Arrays.asList(transportService()));
op.setStsProperties(transportSTSProperties());
op.setClaimsManager(claimsManager);
op.setTokenValidators(transportTokenValidators());
op.setEventListener(loggerListener());
op.setDelegationHandlers(delegationHandlers());
op.setEncryptIssuedToken(wsfed.isEncryptTokens());
return op;
}
Aggregations