This section describes how to add custom authentication when sending MtM requests between Atoti Limits and your connected servers.Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Atoti Limits connects to your Atoti Server application via MtM REST requests. For more information on the connection, see the connection guide. By default, JWT Authentication is used to authenticate the REST requests. This is configured using the autoconfiguration properties. Your organization may not permit JWT authentication, may require some other form of authentication, or may already have some third-party authentication mechanism in place. In these scenarios, knowing how to extend Atoti Limits’s machine-to-machine authentication mechanisms is useful.How to add custom MtM authentication
The steps are as follows:1. Configure your connected server REST client
In your connected Atoti Server project, implement an instance ofILimitsRestClientBuilder (for Atoti Server version 6.1.x or 6.0.x-sb3) or ILimitsRestTemplateBuilder (for Atoti Server version 6.0.x).
Your implementation should return the RestClient.Builder or RestTemplateBuilder that you intend to use.
These are used to create Http clients used to send REST requests from the connected servers to Atoti Limits.
ILimitsRestClientBuilder
ILimitsRestClientBuilder
ILimitsRestTemplateBuilder
ILimitsRestTemplateBuilder
2. Configure your Atoti Limits REST client
In your Atoti Limits project, implement an instance ofILimitsRestClientBuilder. This is used to create an Http client
used to send REST requests from Atoti Limits to the connected servers. This interface is the
same as the ILimitsRestClientBuilder in the previous section.
ILimitsRestClientBuilder
ILimitsRestClientBuilder