-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Labels
feature requestA feature has been asked for or suggested by the communityA feature has been asked for or suggested by the community
Description
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
The Auth0 Management API supports a is_token_endpoint_ip_header_trusted boolean field on the Client class. This field toggles honoring the auth0-forwarded-for header on the token endpoint and has a pre-requisite of the client authentication using client_secret_post or client_secret_basic.
This Java SDK does not current have support for this field.
Describe the ideal solution
The Client class should support this field since it is part of the API.
Alternatives and current workarounds
The Client class can be extended and that extension class passed into create/update SDK methods. This does not support reading the value from Auth0.
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ExtendedAuth0Client extends Client {
@JsonProperty("is_token_endpoint_ip_header_trusted")
private Boolean isTokenEndpointIpHeaderTrusted;
public ExtendedAuth0Client(String name) {
super(name);
}
public Boolean getIsTokenEndpointIpHeaderTrusted() {
return isTokenEndpointIpHeaderTrusted;
}
public void setIsTokenEndpointIpHeaderTrusted(Boolean isTokenEndpointIpHeaderTrusted) {
this.isTokenEndpointIpHeaderTrusted = isTokenEndpointIpHeaderTrusted;
}
}Additional context
No response
Metadata
Metadata
Assignees
Labels
feature requestA feature has been asked for or suggested by the communityA feature has been asked for or suggested by the community