Sending json message using Python to queue using Kerberos authentication.

Does python api supports solace Kerberos authentication?. If so can any one share sample code? If not what are other ways to use Kerberos authentication for sending json message.

Hi @Pravin, not yet, unfortunately. Features are still being added to the Python API. If you have a look at the Python docs you can see what is supported currently and what isn’t.

Solace is payload agnostic so any of our other APIs that support Kerberos, such as Java, will do the trick. To get started quickly, you could use our test harness tool, sdkperf - this will take your json as a file, authenticate using Kerberos, and send the data for you.

We will be releasing kerberos support with python soon, so stay tuned here on the community I will be announcing it when it’s ready and released ?

Thanks for reply. If possible can you please let me know by when you are going to release this. This will help me to estimate timeline for my project. Thanks in advance.

Can you please share sample code for certificate base authentication using python api. As I can see class solace.messaging.config.authentication_strategy.ClientCertificateAuthentication().
And steps to implement.

Hey @Pravin ! Can you please start another post regarding certificate authentication with python so we can answer it there instead and I can show you a code snippet on how to use certificate authentication. In the meantime, you can check out https://tutorials.solace.dev/ under python there are code snippets showing how to configure authentication using ClientCertificateAuthentication

Hi,
There is any update in the Solace’s pubsub python library related to kerberos ? Is it supporting kerberos now?

Hey @gaquino ! According to the docs here, PubSub+ Messaging APIs Kerberos is supported with the Python API now :slight_smile:

thats a GREAT news !!! I just tried to find any sample, but couldn’t. can you help me to find any type of sample related to how to use Python with Kerberos auth?
Thank you

??? where I can find the samples for Kerberos usage ?

Hey @gaquino you can simply set your authentication scheme to use kerberos as seen in the docs here solace.messaging.config package — Solace PubSub+ API For Python 2024 documentation assuming that you are logged in with kerberos on your machine (via kinit )