🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

How can I use OAuth2 for SEMP api authentication ?

Tripti
Tripti Member Posts: 8

Hi ,

I am using Solace using Docker. I am able to create a queue locally with basic authentication. However, I would like to use Oauth2. I tried creating the Oauth profile following this documentation - https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/

As I understood, to enable Oauth2 for the broker we need to set up oauth profile where we need to provide the client ID , secret and the URL of the provider.

I am getting following error 400(bad request) for the request -

GET - http://localhost:8280/SEMP/v2/config/msgVpns/<VPNName>/authenticationOauthProfile

{

"meta": {

"error": {

"code": 535,

"description": "No paths found for /msgVpns/default/authenticationOauthProfile",

"status": "INVALID_PATH"

},

"request": {

"method": "GET",

"uri": "http://localhost:8280/SEMP/v2/config/msgVpns/default/authenticationOauthProfile"

},

"responseCode": 400

}

}

I am using the default message VPN here.

What am I missing here?

Regards,

Tripti