Authentication Types
Understand the authentication methods supported by DAICISION connectors: OAuth 2.0, API Key, Basic Auth, and JWT.
Authentication Types
Every DAICISION connector requires authentication to communicate securely with external services. The platform supports four primary authentication methods. Understanding when to use each one -- and the security implications involved -- is essential for building reliable and secure integrations.
Overview
| Auth Type | Token Expiry | User Interaction | Best For | Security Level | |---|---|---|---|---| | OAuth 2.0 | Short-lived (refresh-based) | One-time consent flow | SaaS platforms with user-scoped data | High | | API Key | Long-lived or never | None (key provisioned externally) | Service-to-service, internal APIs | Medium | | Basic Auth | None (credentials per request) | None | Legacy systems, on-premise services | Low | | JWT (Bearer Token) | Configurable (minutes to hours) | None (issued programmatically) | Microservices, service accounts | High |
OAuth 2.0
OAuth 2.0 is the industry-standard protocol for delegated authorization. Rather than sharing a username and password, the user grants DAICISION a scoped token that provides limited access to their account on the external service.
How It Works
- The user clicks Connect on a connector that supports OAuth.
- DAICISION redirects the user to the external provider's authorization page.
- The user logs in and grants consent for the requested scopes.
- The provider redirects back to DAICISION with an authorization code.
- DAICISION exchanges the code for an access token and a refresh token.
- The access token is used for API calls. When it expires, the refresh token obtains a new one automatically.
When to Use
- The external service supports OAuth 2.0 (Salesforce, Google Workspace, Slack, HubSpot, etc.).
- You need user-scoped access (acting on behalf of a specific user).
- The service requires fine-grained permission scopes.
Security Implications
- Tokens are stored encrypted at rest using AES-256-GCM in the DAICISION credential vault.
- Refresh tokens are rotated automatically when the provider supports rotation.
- If a token is compromised, it can be revoked without changing the user's password.
- Scope minimization is enforced: DAICISION requests only the scopes required by the connector's operations.
For a step-by-step guide, see OAuth Setup.
API Key
An API key is a static secret string issued by the external service and included in each request, typically as a header or query parameter.
How It Works
- The administrator generates an API key in the external service's dashboard.
- The key is entered into the DAICISION credential form for the connector.
- DAICISION includes the key in every request, usually as an
Authorizationheader or a custom header likeX-API-Key.
Configuration
When setting up an API key credential in DAICISION, you specify:
- Key Value -- The secret key itself.
- Header Name -- The HTTP header the key should be sent in (defaults to
Authorization). - Prefix -- An optional prefix such as
BearerorApi-Key.
Authorization: Api-Key sk_live_abc123def456
When to Use
- The external service only offers API key authentication.
- You need service-level (not user-level) access.
- The integration is server-to-server with no end-user involvement.
Security Implications
- API keys do not expire unless manually rotated. Establish a rotation schedule (see Managing Credentials).
- Keys grant full access within their configured scope -- there is no per-user delegation.
- If a key is leaked, it must be revoked and replaced immediately in both the provider and DAICISION.
- DAICISION never logs API key values. They are stored encrypted and masked in the UI.
Basic Auth
Basic Authentication sends a Base64-encoded username and password with each HTTP request.
How It Works
- The administrator provides a username and password in the DAICISION credential form.
- DAICISION encodes the credentials as
Base64(username:password)and includes them in theAuthorizationheader.
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
When to Use
- Connecting to legacy or on-premise systems that do not support OAuth or API keys.
- Internal services behind a VPN or private network where transport-layer security (TLS) is guaranteed.
- Prototyping and development environments.
Security Implications
- Credentials are sent with every request. If TLS is not enforced, they can be intercepted.
- DAICISION enforces HTTPS for all connector traffic. HTTP-only endpoints are rejected by default.
- Passwords should be rotated regularly. Consider migrating to API keys or OAuth when the service supports them.
- Basic Auth credentials are stored encrypted in the credential vault, identical to other auth types.
JWT (Bearer Token)
JSON Web Tokens are self-contained tokens that encode claims (such as the issuer, subject, and expiration) in a signed payload.
How It Works
- The administrator provides a signing key (or private key for RSA/ECDSA) and the required claims in the DAICISION credential form.
- DAICISION generates a JWT on the fly before each request, signed with the provided key.
- The JWT is sent in the
Authorization: Bearer <token>header. - The external service validates the signature and claims before processing the request.
Configuration
DAICISION supports the following JWT signing algorithms:
| Algorithm | Type | Use Case |
|---|---|---|
| HS256 | Symmetric (HMAC) | Shared secret between DAICISION and the service |
| RS256 | Asymmetric (RSA) | Service validates using a public key |
| ES256 | Asymmetric (ECDSA) | Compact tokens for high-performance services |
You configure the following fields:
- Signing Key -- The secret or private key used to sign the token.
- Algorithm -- One of
HS256,RS256, orES256. - Issuer (
iss) -- The issuer claim identifying DAICISION. - Subject (
sub) -- The subject claim, often a service account identifier. - Audience (
aud) -- The intended recipient of the token. - Expiration (
exp) -- How long the token is valid (default: 5 minutes). - Custom Claims -- Additional key-value pairs required by the service.
When to Use
- Service-to-service authentication where both parties agree on a signing key.
- Google Cloud APIs using service account credentials (which use RS256 JWTs internally).
- Internal microservice architectures that use JWT for identity propagation.
Security Implications
- Short expiration windows (5 minutes or less) limit the blast radius of a stolen token.
- Asymmetric algorithms (RS256, ES256) are preferred because the private key never leaves DAICISION.
- DAICISION validates the clock skew tolerance to prevent token reuse attacks.
- Signing keys are stored encrypted and are never exposed through the API or UI.
Choosing the Right Auth Type
Use this decision tree to select the appropriate authentication method:
- Does the service support OAuth 2.0? -- Use OAuth 2.0. It provides the best security and user experience.
- Is this a service-to-service integration with no user context? -- Use JWT if the service supports it; otherwise, use API Key.
- Is this a legacy or on-premise system? -- Use Basic Auth as a last resort, and only over HTTPS.
Next Steps
- OAuth Setup -- Configure OAuth 2.0 step by step.
- Managing Credentials -- Store, rotate, and share credentials securely.
- Browsing Connectors -- Explore the full connector library.