I’m attempting to create an Application that uses private_key_jwt with the java sdk but I cannot figure out how to add the JsonWebKeys to the application. Here is what I have so far.
Thanks
client
.instantiate(OpenIdConnectApplication.class)
.setCredentials(
client
.instantiate(OAuthApplicationCredentials.class)
.setOAuthClient(
client
.instantiate(ApplicationCredentialsOAuthClient.class)
.setTokenEndpointAuthMethod(
OAuthEndpointAuthenticationMethod.PRIVATE_KEY_JWT)))
.setSettings(
client
.instantiate(OpenIdConnectApplicationSettings.class)
.setOAuthClient(
client
.instantiate(OpenIdConnectApplicationSettingsClient.class)
.setResponseTypes(List.of(OAuthResponseType.TOKEN))
.setGrantTypes(List.of(OAuthGrantType.CLIENT_CREDENTIALS))
.setApplicationType(OpenIdConnectApplicationType.SERVICE)
.setJwks(
client
.instantiate(OpenIdConnectApplicationSettingsClientKeys.class))));