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
Since Spring Security only supports the `POST` binding for authentication, there is not very much value in overriding the protocol binding at this point in time.
1974
1974
====
1975
1975
1976
+
=== Use the latest `Saml2AuthenticationToken` constructor
1977
+
1978
+
In an early release, `Saml2AuthenticationToken` took several individual settings as constructor parameters.
1979
+
This created a challenge each time a new parameter needed to be added.
1980
+
Since most of these settings were part of `RelyingPartyRegistration`, a new constructor was added where a `RelyingPartyRegistration` could be provided, making the constructor more stable.
1981
+
It also is valuable in that it more closely aligns with the design of `OAuth2LoginAuthenticationToken`.
1982
+
1983
+
Most applications do not construct this class directly since `Saml2WebSsoAuthenticationFilter` does.
1984
+
However, in the event that your application constructs one, please change from:
1985
+
1986
+
====
1987
+
.Java
1988
+
[source,java,role="primary"]
1989
+
----
1990
+
new Saml2AuthenticationToken(saml2Response, registration.getSingleSignOnServiceLocation(),
0 commit comments