Interface Oidc

All Known Implementing Classes:
OidcImpl

public interface Oidc
A CDI event that facilitates programmatic OIDC tenant setup. OIDC tenants must be created from an observer method like in the example below:
 
 public class OidcSetup {

     void createDefaultTenant(@Observes Oidc oidc) {
         var defaultTenant = OidcTenantConfig.authServerUrl("https://oidc-provider-hostname/").build();
         oidc.create(defaultTenant);
     }
 }
 
 
The example above is equivalent to configuring quarkus.oidc.auth-server-url=https://oidc-provider-hostname/ in the application.properties.