Cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth Authorization Server – API Problems

Experimenter
Experimenter

Hello,

I am trying to get an Bearer Token for my Mindsphere App over the OAuth API over Postman. 

I used the following: https://{tenantName}.piam.{region}.mindsphere.io/oauth/token 

 

I used my normal login creditentials with Basic Auth and added grant_type = client_credentials als form-data.

 

But i always get an 401 Unauthorized error. 

 

3 REPLIES

Re: OAuth Authorization Server – API Problems

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

how did you solve it?

Re: OAuth Authorization Server – API Problems

Siemens Genius Siemens Genius
Siemens Genius

In order to use the oAuth API you need special service credentials as described here: https://developer.mindsphere.io/howto/howto-selfhosted-api-access.html

You WebKey credentials are not going to work.

Re: OAuth Authorization Server – API Problems

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Yep, I realized it later.

 

Thanks