Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add failover to accessToken for OAuth2 with refresh token
Right now when we can't deserialize tokens, that we expect to be encrypted we are failing authentication and send challenges to clients. With this change we will allow for further processing, in case when the format of the token is not parsable - meaning that it's not an JWEToken, but might be a valid OAuth2 token that could be handled by further processing. This case occurs for cases when a tool sends valid accessToken obtained outside from Trino, but has configured Oauth2 with refresh tokens enabled, for other clients that benefit from that flow directly
- Loading branch information