Skip to content
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
@rwinch

Description

@rwinch

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.

See spring-cloud/spring-cloud-commons#93

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions