Skip to content

Commit 166ca46

Browse files
committed
Add default value for multi value input
1 parent 1fdf82a commit 166ca46

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.keycloak</groupId>
88
<artifactId>keycloak-ipaddress-authenticator</artifactId>
9-
<version>${keycloak.version}_1</version>
9+
<version>${keycloak.version}_2</version>
1010
<name>Keycloak IP-Address Authenticator</name>
1111

1212
<properties>

src/main/java/org/keycloak/authentication/authenticators/conditional/ConditionalClientIpAddressAuthenticatorFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public List<ProviderConfigProperty> getConfigProperties() {
7373
final ProviderConfigProperty ipRanges = new ProviderConfigProperty();
7474
ipRanges.setType(MULTIVALUED_STRING_TYPE);
7575
ipRanges.setName(CONF_IP_RANGES);
76+
ipRanges.setDefaultValue("a:b:c:d::/64");
7677
ipRanges.setLabel("IP ranges / subnets");
7778
ipRanges.setHelpText("A list of IP ranges. Supports IPv6 and IPv4, supports CIDR and netmask notation. Examples: a:b:c:d::/64, a.b.c.d/255.255.0.0");
7879

@@ -89,4 +90,4 @@ public List<ProviderConfigProperty> getConfigProperties() {
8990
public ConditionalAuthenticator getSingleton() {
9091
return ConditionalClientIpAddressAuthenticator.SINGLETON;
9192
}
92-
}
93+
}

0 commit comments

Comments
 (0)