Ask a Question

Kafka topic using OAuth2 authentication

SOLVED
jfnumainville
Occasional Contributor

Kafka topic using OAuth2 authentication

Hello,

 

Does anyone have an example of a work Kafka topic that is using OAuth2 authentication? 

 

Thank you in advance!

 

J-F 

21 REPLIES 21
sonya_m
SmartBear Alumni (Retired)

Hi @jfnumainville ! Thank you for the question. In theory, this should work. While there's no detailed instruction, I hope this document can be of some help!

https://support.smartbear.com/readyapi/docs/testing/kafka/auth.html#manual

 

I also recommend looking into Kafka documentation and searching there for parameters needed for OAuth 2.0.

 

 


Sonya Mihaljova
Community and Education Specialist

jfnumainville
Occasional Contributor

Thank you @sonya_m  for your reply. 😀

 

The main obstacle I have with adding custom authentication parameters to the Kafka event connection settings is that the OAuth2 token needs to be dynamically generated as it expires after 60 minutes. Would there be a way to generate the token and then put a reference to it into the connection settings?

 

J-F 

sonya_m
SmartBear Alumni (Retired)

Hi @jfnumainville ! Looks like this can't be done out of the box, unfortunately. We do have ways to automate tokens but it won't work for Kafka.

Looks like this is a great feature request material, please feel free to submit it here.


Sonya Mihaljova
Community and Education Specialist

jfnumainville
Occasional Contributor

Thank you @sonya_m for  your quick reply! I submitted the feature request, please don't hesitate to vote for it! 😉

 

https://community.smartbear.com/t5/Feature-Requests/Enabling-OAuth2-for-Kafka-topics/idi-p/226609

DanielPomian
Staff

Hi @jfnumainville , thank you for your feature request! We are working on adding your feature (OAuth2.0 support for Kafka) to ReadyAPI. We plan to include it in one of the next app versions.

 

Can you please let us know which Get Access Token flows you like to use (more often) to get the access token from the authorisation server? 

We have prioritised these types, starting with the most important one (based on most used flows and based on the use case):  Authorization Code grant, Implicit Grant, Resource Owner Password Credentials Grant, Client Credentials Grant and JWT Profile Authorization Grants (please see the attached image for that).

Thank you,

Daniel, SmartBear ReadyAPI team

 

 

Hi @DanielPomian ,

 

This is great news! Our team is using the Client Credentials Grant flow. 

Looking forward to using this feature in the future. 

 

Thank you,

 

J-F

DanielPomian
Staff

Hi J-F,

 

Thanks for your quick response ! that is very useful for us 🙂

Can you also please let us know what version of Kafka & Kafka clients are you using ?

 

Thank you ,

Daniel

Hey @DanielPomian,

 

We're using  the following:

Kafka sidecar -> 2.2.3

Proxy sidecar -> 2.4.0

 

Is that all the info you need? Please let me know if you need more 😄

 

J-F

DanielPomian
Staff

Thank you, J-F. That is all for now 🙂 We will definitely reach out again when we will need more info - thank you for your support 🙂

 

Daniel

cancel
Showing results for 
Search instead for 
Did you mean: