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