cxf icon indicating copy to clipboard operation
cxf copied to clipboard

fix ModelEncryptionSupport serializer/deserializer

Open hlavki opened this issue 3 years ago • 0 comments

DefaultEncryptingOAuthDataProvider is practically unusable because serialization errors in ModelEncryptionSupport:

  1. new Client("clientId", null, false) was serialized as with space as secret. So when the client was deserialized, then secretId was ' ' instead of null.
  2. All collections were serialized with space e.g. "openid, email" then deserialized values with spaces: 'openid', ' email'

This patch provides fixes for this behavior.

hlavki avatar Jun 16 '21 10:06 hlavki