This repository was archived by the owner on May 31, 2022. It is now read-only.
This repository was archived by the owner on May 31, 2022. It is now read-only.
Serialization of Session/Request Scope Beans should not rely on BeanFactory #705
Closed
Description
Currently Spring Security OAuth adds Session/Request Scope Beans in Session. These beans also serialize the BeanFactory associated to them. This can cause problems when the BeanFactory serializationId is different between serialization and deserialization.
Consider a single application that serializes OAuth2ClientContext
. The application is updated to include one more bean name. The is then started up again and tries to deserialize the previous OAuth2ClientContext
. The deserialization will now fail (if the serialization id changes based upon the names).
I think that Spring Security OAuth should serialize OAuth2ClientContext
in a way that it is not impacted by the underlying BeanFactory
.
Metadata
Metadata
Assignees
Labels
No labels