Custom Claims - OpenID Connect Authentication

If you wish to design your own claim assembly strategy and collect claims into an ID token, you may define the following bean definition in your environment:

1
2
3
4
5
6
7
@AutoConfiguration
public class MyOidcConfiguration {
    @Bean
    public OidcIdTokenClaimCollector oidcIdTokenClaimCollector() {
        return new MyIdTokenClaimCollector();
    }
}

See this guide to learn more about how to register configurations into the CAS runtime.