Create a Suite Auth client for an organization role
Each call to our services needs to be authorized.
In this case, you will use an OAuth2 token provided by Bosch IoT Suite via its UI.
Open the Bosch IoT Suite UI and select your relevant subscription.
Open OAuth2 Clients from the left navigation
Click + New OAuth2 Client
Set a Name.
Set a Client Secret - optional - the secret will be generated by default.
Select as Service Scopes some or all components of this subscription.
Select as Organization Scopes only one Role.
Click Save on the bottom right to store the entries.
You can now use your newly created OAuth2 client to create an access token for service API requests.
Select your OAuth2 client from the list.
Open the actions icon in the top right of the client details view and select Use access token from the menu.
On the Use access token view, you will get a test token created with your OAuth2 client, which will expire after 720 minutes.
You can use it to test an API call manually, however, don't use this token in your application configuration.
Further, you will find examples for different scenarios.