Skip to main content

Overview

Atoti Limits includes native support for JSON Web Tokens. We can utilize this support to send MtM requests using the Authorization: Jwt ... header.
This is the default authentication mechanism in Atoti Limits, but we will show how it is implemented nonetheless to provide a sample extension mechanism.

Use the default support

To use the native support, specify the following properties in both Atoti Limits and your connected server:

How it works

As described in Adding Custom Machine-to-Machine (MtM) Authentication, we need to add some custom implementations to our code.

1. Add a custom ILimitsRestClientBuilder bean in the Connected Server and Atoti Limits.

This example is an implementation of ILimitsRestClientBuilder, which uses JWT authentication:

2. Expose your custom ILimitsRestClientBuilder bean in the Spring context

Once you have written your bean you can expose it to the Spring context.