OAuth2 integration model with Digibee
Learn how to implement an OAuth2-based integration model to securely and efficiently authenticate and authorize connections.
Last updated
Was this helpful?
Learn how to implement an OAuth2-based integration model to securely and efficiently authenticate and authorize connections.
Last updated
Was this helpful?
This document presents an implementation model for the OAuth2 flow used for authentication and authorization in integrations carried out on the Digibee Integration Platform. The goal is to ensure secure access to protected APIs using access tokens and refresh tokens when applicable.
You will learn the standard implementation pattern of the OAuth2 authentication flow on Digibee, including:
Credential generation steps
Token retrieval
Token refresh
Credential removal
Diagram:
Pipeline:
The pipelines implement a complete OAuth2 authentication flow, enabling:
Credential creation
Access token retrieval
Token refresh
Credential removal
The responsible pipeline can be triggered for the initial token generation, token refresh, or credential management, depending on the input parameters.
This mechanism can be reused by other business pipelines via event calls, APIs, or encapsulation in capsules.
Credential generation
Creates a clientId
and clientSecret
pair for future authentications.
Token retrieval
Generates the access token (access_token
) and the refresh_token
.
Token refresh
Renews the access token using the refresh_token
before it expires.
Credential removal
Deletes the credentials (clientId
) from the authentication system.
Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response: