insert into oauth_access_token (token_id, token, authentication_id, user_name, client_id, authentication, refresh_token) values (?, ?, ?, ?, ?, ?, ?)
the column is a blob (max 64k on mysql) and my authentication is 68kb
I see in the code that the whole org.springframework.security.oauth2.provider.OAuth2Authentication object is being serialized including all granted authorities.
Before I used a separate user for UI and rest, I guess combining them results in a user with many source role permissions leading to the exception.