Use Postman to verify your client has access
In the previous section you learned how to access to your Digital Twin Registry by logging in as user - see Request free access to an environment.
In this section we assume that your application which you want to build based on Bosch
Semantic Stack will need to access the digital twin registry too.
We will use the "Client Credential Grant Type Flow" in the further course of this guide.
|If you are not familiar with the OAuth flow see for example a small introduction at https://blog.oauth.io/introduction-oauth2-flow-diagrams/.
Import the prepared environment file B0-ENV.json to Postman and create the default environment for the upcoming requests.
Add your values for the tenant ID (1), client ID (2) and client secret (3).
|This file holds the environment settings for all requests made throughout the getting started guide. Therefore, make sure your other collections will use the environment "Bosch Semantic Stack".
Import the prepared collection
B1-verify-tenant-access.json to Postman and make sure your other collections will use the environment "Bosch Semantic Stack".
It holds 2 requests so far:
This POST request will let our auth server check the validity of your credentials and will create a so called Bearer Token - which is used for the next requests.
The result will present the token and additional information about its validity time frame.
This GET request will list all twins in your tenant.
The result will vary of course - depending on how your Digital Twin Registry is populated.
In our example it shows 0 items. However, the important message here is in fact the response status 200 OK.
your credentials seem to be valid; so feel free to continue with the next steps.