Java Management SDK mark scope as optional

I am trying to use the Java Management SDK to create scopes (org.openapitools.client.api.AuthorizationServerApi#createOAuth2Scope(java.lang.String, org.openapitools.client.model.OAuth2Scope)). In the UI I see an option for consent method as Optional but the SDK doesn’t allow that in its enum (org.openapitools.client.model.OAuth2ScopeConsentType). How do I use the SDK to mark consnet as optional? I tried setting it to null and that marked it as Implicit in the UI.

Using version 10.3.0 of the Java SDK:



Optional scopes I believe just went GA fairly recent and was EA prior,

It doesn’t look like it has been added to the spec yet.

Will Check with the team.

1 Like