|
178 | 178 | import org.springframework.security.saml2.provider.service.authentication.Saml2RedirectAuthenticationRequest;
|
179 | 179 | import org.springframework.security.saml2.provider.service.authentication.Saml2ResponseAssertion;
|
180 | 180 | import org.springframework.security.saml2.provider.service.authentication.Saml2ResponseAssertionAccessor;
|
| 181 | +import org.springframework.security.saml2.provider.service.authentication.TestOpenSamlObjects; |
181 | 182 | import org.springframework.security.saml2.provider.service.authentication.TestSaml2AuthenticationTokens;
|
182 | 183 | import org.springframework.security.saml2.provider.service.authentication.TestSaml2Authentications;
|
183 | 184 | import org.springframework.security.saml2.provider.service.authentication.TestSaml2LogoutRequests;
|
184 | 185 | import org.springframework.security.saml2.provider.service.authentication.TestSaml2PostAuthenticationRequests;
|
185 | 186 | import org.springframework.security.saml2.provider.service.authentication.TestSaml2RedirectAuthenticationRequests;
|
186 | 187 | import org.springframework.security.saml2.provider.service.authentication.logout.Saml2LogoutRequest;
|
| 188 | +import org.springframework.security.saml2.provider.service.registration.OpenSamlAssertingPartyDetails; |
187 | 189 | import org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration;
|
188 | 190 | import org.springframework.security.saml2.provider.service.registration.TestRelyingPartyRegistrations;
|
189 | 191 | import org.springframework.security.web.PortResolverImpl;
|
@@ -541,6 +543,11 @@ final class SerializationSamples {
|
541 | 543 | return token;
|
542 | 544 | });
|
543 | 545 | generatorByClassName.put(Saml2LogoutRequest.class, (r) -> TestSaml2LogoutRequests.create());
|
| 546 | + generatorByClassName.put(OpenSamlAssertingPartyDetails.class, |
| 547 | + (r) -> OpenSamlAssertingPartyDetails |
| 548 | + .withEntityDescriptor( |
| 549 | + TestOpenSamlObjects.entityDescriptor(TestRelyingPartyRegistrations.full().build())) |
| 550 | + .build()); |
544 | 551 |
|
545 | 552 | // web
|
546 | 553 | generatorByClassName.put(AnonymousAuthenticationToken.class, (r) -> {
|
|
0 commit comments