Bosch IoT Rollouts

Set up Suite Auth OAuth2 client

Table of contents:

Create new OAuth2 client

To create an OAuth2 client, enter the common Rollouts Management UI, navigate to Access control → OAuth2(https://console.eu1.bosch-iot-rollouts.com/access-control/oauth2-clients) from the left sidebar, or search for it in Services and features and if needed, use the star icon to pin it to the left navigation.

Click the + icon in the top right to open a dialog where you can enter the required data.

images/confluence/download/attachments/3101809571/image-2024-7-25_14-11-36-version-1-modificationdate-1721909496000-api-v2.png

In particular, you have to enter:

  • Name - an arbitrary name for this new OAuth2 client

  • Scope - select one ore more scopes

images/confluence/download/attachments/3101809571/image-2024-7-25_14-10-54-version-1-modificationdate-1721909455000-api-v2.png

Then confirm with Save.

List and filter existing OAuth2 clients

A list of the OAuth2 clients which you have created will be displayed on the main view of the OAuth2 Clients UI feature.

You can filter through your OAuth2 clients using the search bar.

View OAuth2 client information

When you select an OAuth2 client on the list, its details will appear on the right.

In particular, you will be able to see its:

  • Name

  • Client secret - you can view it via the Show button

  • Client ID - automatically assigned by the system, you can copy it via the copy icon at the end of it

  • Last modified

  • Scope

images/confluence/download/attachments/3101809571/image-2024-7-25_14-10-11-version-1-modificationdate-1721909412000-api-v2.png

Manage the OAuth2 client

Click the actions icon on the top right to open a dialog with the available management actions:

  • Edit - allows you to change the initial settings such as name, secret and scopes

  • Use access token - you can use your OAuth2 client to create an access token for service API requests. See details below.

  • Delete - you will be asked for confirmation before you actually delete the specified client

images/confluence/download/attachments/3101809571/image-2024-7-25_14-11-51-version-1-modificationdate-1721909512000-api-v2.png

Use access token

By clicking this action, you can obtain a test access token, along with examples of how to fetch an access token for your client, and how to use the obtained access token to access a Bosch IoT Rollouts Service API.

Test access token

You can use the test token to test an API call manually, however, do not use it in your application configuration, as it is set to expire in 720 minutes.

Fetch access token examples

You will find various examples of how to fetch an access token for your client.

The response body will contain the access token, which can then be used in the Authorization HTTP header for subsequent API calls, and some additional meta information such as expiration time, actually granted scopes, and the token type.

Use Service API examples

You will find cURL and Spring examples of how to use the obtained access token to access a Bosch IoT Rollouts Service API.

images/confluence/download/attachments/3101809571/image-2024-7-25_14-12-19-version-1-modificationdate-1721909539000-api-v2.png


Token details via User view

The User dialog in the header bar displays information about your currently used OAuth2 token and its expiry.

images/confluence/download/attachments/3101809571/image-2024-7-25_14-13-47-version-1-modificationdate-1721909627000-api-v2.png

Copy the OAuth2 token value and use it to authenticate in the Sign & Encrypt API.