getindata / flink-http-connector

Http Connector for Apache Flink. Provides sources and sinks for Datastream , Table and SQL APIs.
Apache License 2.0
135 stars 39 forks source link

Allow short lived bearer tokens to be used (first implementation being against IBM cloud) #91

Open davidradl opened 2 months ago

davidradl commented 2 months ago

It would be great for us to be able to use https://ibm.github.io/java-sdk-core/docs/9.17.3/com/ibm/cloud/sdk/core/security/IamAuthenticator.html which handles token refresh for the IBM cloud.

This authenticator is Apache 2 licensed, so could go into this repository. I am thinking that there would be a factory for the authenticator, which would expose an interface allowing the authenticator to be identified and configured and methods exposed to get the latest access token ( under the covers calling https://ibm.github.io/java-sdk-core/docs/9.17.3/com/ibm/cloud/sdk/core/security/IamAuthenticator.html#requestToken--. In the future if other implementations are required then they could be added to the factory with a new identifier.

kristoffSC commented 4 weeks ago

This sounds very good, Looking forward to see it done :) THX!