OAuth 2.0
Manages OAuth 2.0 authentication flows, including token acquisition, storage, and automatic refresh.
Grant types
Select the grant type that matches the API you are connecting to:
| Grant Type | Description |
|---|---|
| Authorization Code | User-facing OAuth flow. Redirects the user to the provider's login page to grant access |
| Client Credentials | Server-to-server flow. No user interaction required |
| Refresh Token | Uses a refresh token to obtain new access tokens |
| Password (Resource Owner) | Exchanges a username and password directly for a token. Avoid if possible — use Authorization Code instead |
Fields
Fields vary by grant type. Common fields:
| Field | Description |
|---|---|
| Auth URL | The authorisation endpoint (Authorization Code only) |
| Access Token URL | The token endpoint |
| Refresh Token URL | The refresh endpoint (if different from the token URL) |
| Client ID | Your application's client identifier |
| Client Secret | Your application's client secret |
| Redirect URI | The callback URL registered with the provider. For Blokkio, use the OAuth2 callback URL shown in the connection form |
| Scope | Space-separated list of requested scopes |
| Client Authentication | How to send client credentials: Header (Basic Auth) or Body |
For Password grant:
| Field | Description |
|---|---|
| Username | Resource owner username |
| Password | Resource owner password |
Token handling
Blokkio stores the access token, refresh token, and expiry from the provider's token response. When a token is near expiry, Blokkio automatically requests a new one using the refresh token before executing the next workflow run.
Authorization Code flow
For the Authorization Code grant, after saving the connection you will be prompted to complete the OAuth flow:
- Click Authorise. You are redirected to the provider's login page.
- Log in and grant the requested permissions.
- You are redirected back to Blokkio. The access token is stored automatically.
The redirect URI registered with your OAuth provider must match the Blokkio OAuth2 callback URL shown in the connection form.