Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to get new secret key for existing client Id.

Experimenter
Experimenter

We are trying to get new secrete key using old secret key .According to https://developer.mindsphere.io/howto/howto-client-secret-rotation.html#introduce-a-new-secret Request should be like :

curl -X POST \
  -H 'Current-Secret: {active secret}' \
  -H 'Authorization: Bearer {token with prv.oc.sec.ch scope}' \
  -H 'Content-type: application/json' \
  -d '{
        "newSecret": "{new secret to introduce}"
      }' \
  '.../provider/oauth/clients/{clientId}/secrets'

What should be the base url here?
I tried something like https://gateway.eu1.mindsphere.io/api/provider/oauth/clients/agt_service_account/secrets  ,but it throws error :

 

 [
    {
        "logref": "c452dcf2396b4e14a26b8090447bf917",
        "message": "MindSphere Gateway error: There is no registered installation: https://gateway.eu1.mindsphere.io/api/provider/oauth/clients/agt_service_account/secrets",
        "stackTrace": ""
    }
] 


Thanks,

Vidya 

1 REPLY 1

Re: How to get new secret key for existing client Id.

Legend
Legend

I think the URL you should use (per the spec) should be:

 

/api/identitymanagement/v3/provider/oauth/clients/{clientId}/secrets