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
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/migration.adoc
+114
Original file line number
Diff line number
Diff line change
@@ -2074,6 +2074,120 @@ val verifying: List<Saml2X509Credential> = registration.getAssertingPartyDetails
2074
2074
2075
2075
For a complete listing of all changed methods, please see {security-api-url}org/springframework/security/saml2/provider/service/registration/RelyingPartyRegistration.html[``RelyingPartyRegistration``'s JavaDoc].
2076
2076
2077
+
=== Use OpenSAML 4
2078
+
2079
+
OpenSAML 3 has reached its end-of-life.
2080
+
As such, Spring Security 6 drops support for it, bumping up its OpenSAML baseline to 4.
2081
+
2082
+
To prepare for the upgrade, update your pom to depend on OpenSAML 4 instead of 3:
2083
+
2084
+
====
2085
+
.Maven
2086
+
[source,maven,role="primary"]
2087
+
----
2088
+
<dependencyManagement>
2089
+
<dependency>
2090
+
<groupId>org.opensaml</groupId>
2091
+
<artifactId>opensaml-core</artifactId>
2092
+
<version>4.2.1</version>
2093
+
</dependency>
2094
+
<dependency>
2095
+
<groupId>org.opensaml</groupId>
2096
+
<artifactId>opensaml-saml-api</artifactId>
2097
+
<version>4.2.1</version>
2098
+
</dependency>
2099
+
<dependency>
2100
+
<groupId>org.opensaml</groupId>
2101
+
<artifactId>opensaml-saml-impl</artifactId>
2102
+
<version>4.2.1</version>
2103
+
</dependency>
2104
+
</dependencyManagement>
2105
+
----
2106
+
2107
+
.Gradle
2108
+
[source,gradle,role="secondary"]
2109
+
----
2110
+
dependencies {
2111
+
constraints {
2112
+
api "org.opensaml:opensaml-core:4.2.1"
2113
+
api "org.opensaml:opensaml-saml-api:4.2.1"
2114
+
api "org.opensaml:opensaml-saml-impl:4.2.1"
2115
+
}
2116
+
}
2117
+
----
2118
+
====
2119
+
2120
+
You must use at least OpenSAML 4.1.1 to update to Spring Security 6's SAML support.
2121
+
2122
+
=== Use `OpenSaml4AuthenticationProvider`
2123
+
2124
+
In order to support both OpenSAML 3 and 4 at the same time, Spring Security released `OpenSamlAuthenticationProvider` and `OpenSaml4AuthenticationProvider`.
2125
+
In 6.0, because OpenSAML3 support is removed, `OpenSamlAuthenticationProvider` is removed as well.
2126
+
2127
+
Not all methods in `OpenSamlAuthenticationProvider` were ported 1-to-1 to `OpenSaml4AuthenticationProvider`.
2128
+
As such, some adjustment will be required to make the challenge.
2129
+
2130
+
Consider the following representative usage of `OpenSamlAuthenticationProvider`:
2131
+
2132
+
====
2133
+
.Java
2134
+
[source,java,role="primary"]
2135
+
----
2136
+
OpenSamlAuthenticationProvider versionThree = new OpenSamlAuthenticationProvider();
0 commit comments