Skip to content

JdbcOAuth2AuthorizationService should not use Blob #387

Closed
@clgraf

Description

@clgraf

JdbcOAuth2AuthorizationService persists the tokens as Blobs (authorization_code_value, oidc_id_token_value, refresh_token_value and authorization_code_value).

It works great with H2 but I'm not sure if it works with Postgres (my case) or even another database.
Other point, it's harder to query the database directly, for maintenence or debugging. I'm not sure about performance.

All above fields can be easily represented as Strings, so my sugestion is to change the sql types to Varchar instead of Blob.

BTW, maybe there is a good reason to use Blobs but I can't see.

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions