nastra commented on code in PR #6616:
URL: https://github.com/apache/iceberg/pull/6616#discussion_r1084268737
##########
core/src/main/java/org/apache/iceberg/rest/auth/OAuth2Util.java:
##########
@@ -622,7 +636,11 @@ private static AuthSession fromTokenResponse(
String credential) {
AuthSession session =
new AuthSession(
- parent.headers(), response.token(), response.issuedTokenType(),
credential);
+ parent.headers(),
+ response.token(),
+ response.issuedTokenType(),
+ credential,
+ parent.scope());
Review Comment:
I've simplified this to actually and removed the `scope` parameter from
`fromTokenExchange`/`fromCredential` as I think we need to take the `scope`
from the `parent` in those cases
--
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]