Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ModelEncryptionSupport serializer/deserializer #816

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hlavki
Copy link
Contributor

@hlavki hlavki commented Jun 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant