snazy commented on PR #3236: URL: https://github.com/apache/polaris/pull/3236#issuecomment-3627966860
> The PR currently suggests Optional<String> getToken(), but this is imho too OAuth2-oriented. Yea, I was wondering about that as well now, given that re-constructing a JWT requires parsing JSON. Had the idea of adding a function `<T> Optional<T> as(Class<T> type)` on `PolarisPrincipal`, but that would be a more invasive approach. CDI injection sounds like the better alternative. -- 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]
