Authentication
DigiLEAN Connect API use Client Credentials and Bearer token for authentication
Scopes are used for limiting access to endpoints and operations.
The lifetime of the access token is default 24 hours
Retrieve access token
Token request
URL-encoded form submission
http
POST https://auth.digilean.tools/connect/token
Content-Type: application/x-www-form-urlencoded
client_id={your-id}
&client_secret={your-secret}
&grant_type=client_credentials
Token response
parts of token is omitted
json
{
"access_token": "eyJhbGciOiJFUzM4NCIsImtpZCI6Ijk2YzU0MTQ4Y2U4MTQzMWNh...",
"expires_in": 86400,
"token_type": "Bearer",
"scope": "Data.Read Data.ReadWrite"
}
Use the access token
Use access token in authorization header
http
GET https://connect.digilean.tools/v1/datasources
Authorization: Bearer eyJhbGciOiJFUzM4NCIsImtpZCI6Ijk2YzU0MTQ4Y2U4MTQzMWNh...