Overview
This guide explains how to authenticate with our API using OpenID Connect (OIDC) with the client credentials flow. This authentication method is designed for server-to-server communication where your application needs to access API resources on its own behalf.Prerequisites
Before you begin, ensure you have:- Your Client ID and Client Secret, which you can create at https://app.engrate.io
- The authorization server’s token endpoint URL which is
https://login.engrate.io/oauth/v2/oauth-token
Introduction to OAuth 2.0/OIDC
The client credentials flow is OAuth 2.0/OIDC that involves these steps:- Your application sends a
POST
request to the token endpoint with yourClient ID
andClient Secret
- The authorization server validates your credentials
- If valid, the server returns an access token
- Your application use this access token to authenticate API requests by passing it in a header:
Authorization: Bearer <token>
Client Libraries
All major languages have client libraries to use that simplify the OIDC 2.0 flow. Below are some suggestions.- authlib (Python)
- openid-client (Node.js)
- go-oidc (Go)