adutra commented on issue #17600:
URL: https://github.com/apache/iceberg/issues/17600#issuecomment-7103715318

   FYI, the token exchange grant in `OAuth2Manager` v1 was never meant to 
exchange a token with proper RFC-8693 semantics.
   
   The usage described here is one of the unconventional, non-standard ways of 
triggering a token exchange grant today. It is non-standard on both sides: 
Trino crafts a JWT instead of passing a valid user token; and Iceberg exchanges 
it using unrelated client credentials, resulting in a token exchange request 
that no IDP today would ever accept.
   
   IMHO, this whole workflow should now be considered legacy and deprecated for 
removal. We need to build this functionality again, from  scratch:
   
   - On the Trino side: provide the real user token, or better yet, provide a 
fully-fledged `AuthManager`.
     -  See https://github.com/trinodb/trino/issues/26320
     - See https://github.com/trinodb/trino/pull/29758
   - On the Iceberg side: land `OAuth2Manager` v2, then implement a proper 
token exchange grant. In parallel, land `AuthManager` programmatic injection.
     - See https://github.com/apache/iceberg/pull/18756
     - See https://github.com/apache/iceberg/pull/12655


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to