dimas-b commented on code in PR #3170:
URL: https://github.com/apache/polaris/pull/3170#discussion_r2582626983
##########
polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisPrincipal.java:
##########
@@ -74,4 +106,8 @@ static PolarisPrincipal of(String name, Map<String, String>
properties, Set<Stri
* as permissions, preferences, or other metadata.
*/
Map<String, String> getProperties();
+
+ /** Returns the access token of the current user. */
+ @Nullable
+ String getToken();
Review Comment:
You may want to hold this until you deal with `StorageCredentialCacheKey`,
then use whatever is more convenience on the cache side.
##########
polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisPrincipal.java:
##########
@@ -74,4 +106,8 @@ static PolarisPrincipal of(String name, Map<String, String>
properties, Set<Stri
* as permissions, preferences, or other metadata.
*/
Map<String, String> getProperties();
+
+ /** Returns the access token of the current user. */
+ @Nullable
+ String getToken();
Review Comment:
You may want to hold this until you deal with `StorageCredentialCacheKey`,
then use whatever is more convenient on the cache side.
--
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]