You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to configure my application to use private key authentication in "client_authentication_methods". For this I need to set "token_endpoint_auth_method" to null, however the SDK does not allow for null values to be set due to @JsonInclude(Include.NON_NULL) on src/main/java/com/auth0/json/mgmt/client/Client.java.
I agree that omitting fields if they are null is ok for most fields, however in this case it prevents clients from switching to the private key authentication method.
As a suggestion, maybe adding another allowed value to token_endpoint_auth_method (apart from 'none', client_secret_post', 'client_secret_basic') to represent "null" would work.
Reproduction
Have a Machine to Machine client with client secret (token_endpoint_auth_method=client_secret_post)
Checklist
Description
I want to configure my application to use private key authentication in "client_authentication_methods". For this I need to set "token_endpoint_auth_method" to null, however the SDK does not allow for null values to be set due to @JsonInclude(Include.NON_NULL) on src/main/java/com/auth0/json/mgmt/client/Client.java.
I agree that omitting fields if they are null is ok for most fields, however in this case it prevents clients from switching to the private key authentication method.
As a suggestion, maybe adding another allowed value to token_endpoint_auth_method (apart from 'none', client_secret_post', 'client_secret_basic') to represent "null" would work.
Reproduction
token_endpoint_auth_method=null
token_endpoint_auth_method
must be disabled (set to null) when migrating toclient_authentication_methods
."Additional context
No response
auth0-java version
2.10.1
Java version
17.0.9 (Amazon Corretto)
The text was updated successfully, but these errors were encountered: