Procházet zdrojové kódy

Serialize objects from 6.3.x

Issue gh-3737
Marcus Hert Da Coregio před 1 rokem
rodič
revize
ddcaeb5c20
49 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      config/src/test/java/org/springframework/security/SpringSecurityCoreVersionSerializableTests.java
  2. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.access.intercept.RunAsUserToken.serialized
  3. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.RememberMeAuthenticationToken.serialized
  4. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.UsernamePasswordAuthenticationToken.serialized
  5. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.jaas.JaasAuthenticationToken.serialized
  6. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.jaas.JaasGrantedAuthority.serialized
  7. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.cas.authentication.CasAssertionAuthenticationToken.serialized
  8. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.cas.authentication.CasAuthenticationToken.serialized
  9. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.cas.authentication.CasServiceTicketAuthenticationToken.serialized
  10. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.core.authority.SimpleGrantedAuthority.serialized
  11. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.core.context.SecurityContextImpl.serialized
  12. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.core.session.ReactiveSessionInformation.serialized
  13. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.core.session.SessionInformation.serialized
  14. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.core.userdetails.User$AuthorityComparator.serialized
  15. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.core.userdetails.User.serialized
  16. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.ldap.userdetails.InetOrgPerson.serialized
  17. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.ldap.userdetails.LdapUserDetailsImpl.serialized
  18. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.ldap.userdetails.Person.serialized
  19. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.OAuth2AuthorizedClient.serialized
  20. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.OAuth2AuthorizedClientId.serialized
  21. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken.serialized
  22. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.authentication.OAuth2AuthorizationCodeAuthenticationToken.serialized
  23. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.authentication.OAuth2LoginAuthenticationToken.serialized
  24. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.registration.ClientRegistration$Builder.serialized
  25. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.registration.ClientRegistration.serialized
  26. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.AuthenticationMethod.serialized
  27. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.AuthorizationGrantType.serialized
  28. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.ClientAuthenticationMethod.serialized
  29. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.OAuth2AccessToken$TokenType.serialized
  30. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.OAuth2Error.serialized
  31. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange.serialized
  32. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest.serialized
  33. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponse.serialized
  34. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponseType.serialized
  35. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.oidc.OidcUserInfo.serialized
  36. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.user.DefaultOAuth2User.serialized
  37. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.user.OAuth2UserAuthority.serialized
  38. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken.serialized
  39. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication.serialized
  40. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken.serialized
  41. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken.serialized
  42. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.provisioning.MutableUser.serialized
  43. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.saml2.core.Saml2Error.serialized
  44. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.WebAuthenticationDetails.serialized
  45. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken.serialized
  46. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails.serialized
  47. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.switchuser.SwitchUserGrantedAuthority.serialized
  48. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.web.savedrequest.DefaultSavedRequest.serialized
  49. binární
      config/src/test/resources/serialized/6.3.x/org.springframework.security.web.savedrequest.SavedCookie.serialized

+ 4 - 0
config/src/test/java/org/springframework/security/SpringSecurityCoreVersionSerializableTests.java

@@ -29,6 +29,7 @@ import java.lang.reflect.Modifier;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
+import java.time.Instant;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
@@ -59,6 +60,7 @@ import org.springframework.security.cas.authentication.CasAssertionAuthenticatio
 import org.springframework.security.cas.authentication.CasAuthenticationToken;
 import org.springframework.security.cas.authentication.CasServiceTicketAuthenticationToken;
 import org.springframework.security.core.SpringSecurityCoreVersion;
+import org.springframework.security.core.session.ReactiveSessionInformation;
 import org.springframework.security.core.session.SessionInformation;
 import org.springframework.security.core.userdetails.UserDetails;
 import org.springframework.security.oauth2.client.OAuth2AuthorizedClient;
@@ -138,6 +140,8 @@ class SpringSecurityCoreVersionSerializableTests {
 		generatorByClassName.put(OidcUserInfo.class, (r) -> OidcUserInfo.builder().email("email@example.com").build());
 		generatorByClassName.put(SessionInformation.class,
 				(r) -> new SessionInformation(user, r.alphanumeric(4), new Date(1704378933936L)));
+		generatorByClassName.put(ReactiveSessionInformation.class,
+				(r) -> new ReactiveSessionInformation(user, r.alphanumeric(4), Instant.ofEpochMilli(1704378933936L)));
 		generatorByClassName.put(OAuth2LoginAuthenticationToken.class, (r) -> {
 			var token = new OAuth2LoginAuthenticationToken(clientRegistration,
 					TestOAuth2AuthorizationExchanges.success());

binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.access.intercept.RunAsUserToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.RememberMeAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.UsernamePasswordAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.jaas.JaasAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.authentication.jaas.JaasGrantedAuthority.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.cas.authentication.CasAssertionAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.cas.authentication.CasAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.cas.authentication.CasServiceTicketAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.core.authority.SimpleGrantedAuthority.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.core.context.SecurityContextImpl.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.core.session.ReactiveSessionInformation.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.core.session.SessionInformation.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.core.userdetails.User$AuthorityComparator.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.core.userdetails.User.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.ldap.userdetails.InetOrgPerson.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.ldap.userdetails.LdapUserDetailsImpl.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.ldap.userdetails.Person.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.OAuth2AuthorizedClient.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.OAuth2AuthorizedClientId.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.authentication.OAuth2AuthorizationCodeAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.authentication.OAuth2LoginAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.registration.ClientRegistration$Builder.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.client.registration.ClientRegistration.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.AuthenticationMethod.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.AuthorizationGrantType.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.ClientAuthenticationMethod.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.OAuth2AccessToken$TokenType.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.OAuth2Error.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponse.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponseType.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.oidc.OidcUserInfo.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.user.DefaultOAuth2User.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.core.user.OAuth2UserAuthority.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.provisioning.MutableUser.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.saml2.core.Saml2Error.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.WebAuthenticationDetails.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.preauth.PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.web.authentication.switchuser.SwitchUserGrantedAuthority.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.web.savedrequest.DefaultSavedRequest.serialized


binární
config/src/test/resources/serialized/6.3.x/org.springframework.security.web.savedrequest.SavedCookie.serialized