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

MindSphere Gateway error 403 forbiden

Experimenter
Experimenter

Snipaste_2019-02-12_16-11-27.png

https://htywms18.eu1.mindsphere.io/api/iottimeseries/v3/timeseries/8390768cb4c8453ca24c99e10dd880eb/... =8390768cb4c8453ca24c99e10dd880eb&propertysetname=testCollection&timeseries =[{ "_time": "2018-11-02T00:00:00.001Z", "quantity_elec": 30, "electric": 200, "notes": "normal operation" },{ "_time": "2018-11-02T00:01:00.001Z", "quantity_elec": 30, "electric": 200, "notes": "normal operation" }]

This is my request path.I want to know what's wrong with my path,and what else parameters needed.who can give me a success demo.How can I get other parameters?thanks.

3 REPLIES

Re: MindSphere Gateway error 403 forbiden

Legend
Legend
You are trying to access mindsphere with postman and you are not providing the required authentication headers, please check:
https://developer.mindsphere.io/concepts/concept-authentication.html#calling-apis-from-frontend

Take also a look at the link below, you can use the same technique to call the APIs using Postman:
https://gitlab.com/mindsphere/devops-demo/#local-development

Re: MindSphere Gateway error 403 forbiden

Experimenter
Experimenter
I don't know how to get the authentication.I try to get the token throw this path "https://gateway.eu1.mindsphere.io/api/technicaltokenmanager/v3/oauth/token" ,but it didn't work.I also try this path "An Authentication object was not found in the SecurityContext",and it throw the error "An Authentication object was not found in the SecurityContext".

Re: MindSphere Gateway error 403 forbiden

Experimenter
Experimenter
"MindSphere Gateway error: Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-XSRF-TOKEN'."
what's the meaning of '_csrf' or header 'X-XSRF-TOKEN' ,and how can I get it.