danielcweeks commented on code in PR #8976: URL: https://github.com/apache/iceberg/pull/8976#discussion_r1493063230
########## core/src/main/java/org/apache/iceberg/rest/auth/OAuth2Util.java: ########## @@ -361,6 +392,23 @@ public static class AuthSession { private final String credential; private final String scope; private volatile boolean keepRefreshed = true; + private final String oauth2ServerUri; + + public AuthSession( + Map<String, String> baseHeaders, + String token, + String tokenType, + String credential, + String scope, + String oauth2ServerUri) { + this.headers = RESTUtil.merge(baseHeaders, authHeaders(token)); + this.token = token; + this.tokenType = tokenType; + this.expiresAtMillis = OAuth2Util.expiresAtMillis(token); + this.credential = credential; + this.scope = scope; + this.oauth2ServerUri = oauth2ServerUri; + } public AuthSession( Review Comment: It doesn't appear to be referenced anymore so you should add a deprecation warning and message (see [deprecation docs](https://iceberg.apache.org/contribute/?h=deprec#minor-version-deprecations-required)) -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org