Cancel
Showing results for 
Search instead for 
Did you mean: 

MindSphere OAuth authentication

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

As descriped in the MindAccess developer tutorial document MindSphere provides OAuth Authorization Server to acquire an access token.

We have tried the following POST request:

curl -X POST \
https://minddfi-st1.3rdp-iam.mindsphere.io/oauth/token \
-H 'accept: application/json' \
-H 'authorization: Basic bW...............................' \
-H 'content-type: application/x-www-form-urlencoded' \
-d grant_type=client_credentials

 

...but the response is always "{
"error": "unauthorized",
"error_description": "Bad credentials"
}

 

Should this be possible with normal tenant admin rights? Is the zoneid = tenant name?

1 REPLY

Re: MindSphere OAuth authentication

Experimenter
Experimenter

If you are in a development account you need to use the dev endpoint for iam (3rdp-iamdev) so from your example:

https://minddfi-st1.3rdp-iamdev.mindsphere.io/oauth/token

 

You may also have to switch to an http GET passing the grant_type in the url parameters:

https://<tenant-id>.3rdp-iamdev.mindsphere.io/oauth/token?grant_type=client_credentials