kumaab opened a new pull request, #1227: URL: https://github.com/apache/ranger/pull/1227
## What changes were proposed in this pull request? Introduce new config: - `ranger.plugin.<service>.policy.rest.client.jwt.provider` to supply a custom Token Supplier - defaulting to `DefaultJwtProvider` if unavailable. The configured class must implement the JDK's `java.util.function.Supplier<String>`, so custom token suppliers can be plain lambdas/suppliers with no dependency on Ranger libraries. If the property is set, the class is instantiated via reflection. Refactoring occurrences to generic TokenSupplier and using JWT as one default implementation via `DefaultJwtProvider` ## How was this patch tested? - added additional unit tests -- 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]
