Configuration

Basic configuration of the library

You begin by creating a ProviderConfig object, with the necessary fields provided

String base = "https://auth.example.com";
        ProviderConfig providerConfig = ProviderConfig.builder()
                .baseUrl(base)
                .build();

        OIDCProvider provider = new OIDCProvider(providerConfig);

        DiscoveryDocument document = provider.getDiscoveryDocument();

        assertEquals(base, document.getIssuer());

You can now return this DiscoveryDocument from a web controller of some sort.

Further configuration

The ProviderConfig class also allows you to define various behaviours of your authorization server, such as the supported scopes, claims, response types, grant types and ACR values.