fix: showing only the canonical oauth2 property name (#41652)

closes: #41624

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
This commit is contained in:
Steven Hawkins 2025-08-05 11:03:27 -04:00 committed by GitHub
parent 75afda4104
commit d3d217e074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ package org.keycloak.representations.idm;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import org.jboss.logging.Logger;
import org.keycloak.common.util.MultivaluedHashMap;
@ -517,6 +518,7 @@ public class RealmRepresentation {
this.oauth2DeviceCodeLifespan = oauth2DeviceCodeLifespan;
}
@Schema(name = "oauth2DeviceCodeLifespan")
public Integer getOAuth2DeviceCodeLifespan() {
return oauth2DeviceCodeLifespan;
}
@ -525,6 +527,7 @@ public class RealmRepresentation {
this.oauth2DevicePollingInterval = oauth2DevicePollingInterval;
}
@Schema(name = "oauth2DevicePollingInterval")
public Integer getOAuth2DevicePollingInterval() {
return oauth2DevicePollingInterval;
}