[java-idp-oidc] branch main updated: Switched flow test user authentication to exploit HTPasswdValidator
Codeberg
noreply at shibboleth.net
Fri May 8 15:05:16 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-idp-oidc.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-oidc/commit/d3ebf1d62178c21cfbd0a34d64b6f7d88082c124
The following commit(s) were added to refs/heads/main by this push:
new d3ebf1d6 Switched flow test user authentication to exploit HTPasswdValidator
d3ebf1d6 is described below
commit d3ebf1d62178c21cfbd0a34d64b6f7d88082c124
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri May 8 18:04:39 2026 +0300
Switched flow test user authentication to exploit HTPasswdValidator
LDAP was causing issues for tests against different IdP versions (eg. 5.0 vs 5.2)
---
idp-oidc-extension-impl/pom.xml | 5 -----
.../idp/module/conf/authn/password-authn-config.xml | 19 +++++++++++++++++++
.../shibboleth/idp/module/credentials/jdoe.htpasswd | 1 +
.../shibboleth/idp/module/credentials/ldap-server.crt | 13 -------------
4 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/idp-oidc-extension-impl/pom.xml b/idp-oidc-extension-impl/pom.xml
index e24e69a0..0cf143fa 100644
--- a/idp-oidc-extension-impl/pom.xml
+++ b/idp-oidc-extension-impl/pom.xml
@@ -471,11 +471,6 @@
<artifactId>shib-testing</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>com.unboundid</groupId>
- <artifactId>unboundid-ldapsdk</artifactId>
- <scope>test</scope>
- </dependency>
<dependency>
<groupId>${spring.groupId}</groupId>
<artifactId>spring-test</artifactId>
diff --git a/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/conf/authn/password-authn-config.xml b/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/conf/authn/password-authn-config.xml
new file mode 100644
index 00000000..159e8f6e
--- /dev/null
+++ b/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/conf/authn/password-authn-config.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:c="http://www.springframework.org/schema/c"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
+
+ default-init-method="initialize"
+ default-destroy-method="destroy">
+
+ <util:list id="shibboleth.authn.Password.Validators">
+ <bean parent="shibboleth.HTPasswdValidator" p:resource="%{idp.home}/credentials/jdoe.htpasswd" />
+ </util:list>
+
+</beans>
\ No newline at end of file
diff --git a/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/credentials/jdoe.htpasswd b/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/credentials/jdoe.htpasswd
new file mode 100644
index 00000000..fb7368fb
--- /dev/null
+++ b/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/credentials/jdoe.htpasswd
@@ -0,0 +1 @@
+jdoe:$apr1$k8cau5yq$NgxCkqzRfuA/kHy0JrH/r.
\ No newline at end of file
diff --git a/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/credentials/ldap-server.crt b/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/credentials/ldap-server.crt
deleted file mode 100644
index e6390b34..00000000
--- a/idp-oidc-extension-impl/src/test/resources/net/shibboleth/idp/module/credentials/ldap-server.crt
+++ /dev/null
@@ -1,13 +0,0 @@
------BEGIN CERTIFICATE-----
-MIICATCCAWoCCQCZy4ovDlQTvDANBgkqhkiG9w0BAQUFADBFMRMwEQYKCZImiZPy
-LGQBGRYDbmV0MRowGAYKCZImiZPyLGQBGRYKc2hpYmJvbGV0aDESMBAGA1UEAxMJ
-bG9jYWxob3N0MB4XDTEzMDkyMDA0NDE1OFoXDTIzMDkxODA0NDE1OFowRTETMBEG
-CgmSJomT8ixkARkWA25ldDEaMBgGCgmSJomT8ixkARkWCnNoaWJib2xldGgxEjAQ
-BgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA+Pj+
-Rk0FosrK8tdNJLASSbfRFEJDf0498bnwtor76PONwkTLjnm7paTMAy7oGIAccuBf
-n7183mlo/yh22x+7Fdux4ESvdp1FWl7nGlBBWUrLZzXwwGybC0qv3/Cmvfkvm6zh
-zgY7YyQYlA/RCjTk/pUfrXaIIaKwd+B2miBDrDUCAwEAATANBgkqhkiG9w0BAQUF
-AAOBgQCKQsndxYjsGIvK3lnlztIuKQmRlj7IHL/T6abBYwmQcyMa5o3hv6/Rx+Ze
-NSRfyhakPY4v5yUBi1fyIVIGcAbnak+GQIfsO8uDhzZt6DwshzHrnCbHTLQx6NTB
-4mvLjAdt7riBIl5y5n3tbtrZdpTgFhQxjLWTBpWIO0XKxqtBhw==
------END CERTIFICATE-----
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list