strimzi / strimzi-kafka-oauth

OAuth2 support for Apache Kafka® to work with many OAuth2 authorization servers
Apache License 2.0
147 stars 90 forks source link

Minimise initial grants requests for 'same token, different session' case #180

Closed mstruk closed 1 year ago

mstruk commented 1 year ago

If grants for the token exist in another session, reuse them, rather than fetch them again. Also introduce per-access-token semaphore to prevent parallel fetching of grants for the same token.

Add strimzi.authorization.reuse.grants config option to enable this optimisation.

Signed-off-by: Marko Strukelj marko.strukelj@gmail.com

mstruk commented 1 year ago

The ppc64le CI build keeps having issues. The testsuite run (amd64) passed.