Session-based Authentication Overview
Session-based authentication is the primary method for authenticating users in the Circularo system. It provides a secure way to access the API.What are Session Tokens?
Session tokens are temporary authentication credentials that:- Provide secure access to the Circularo API after successful authentication
- Are valid for 30 days by default
- Can be used across multiple API requests
- Eliminate the need to send credentials with each request
Authentication Methods
Circularo supports multiple authentication methods to accommodate different security requirements:- Standard Authentication: Simple username and password login
- Multi-Factor Authentication (MFA): Additional verification step after password entry
- Recovery Code Authentication: Emergency access when standard MFA methods are unavailable
Token Lifecycle
- Creation: Generated upon successful authentication
- Validation: Can be checked for validity
- Usage: Included as a query parameter in API requests
- Termination: Invalidated through explicit logout or expiration
Security Considerations
- Store session tokens securely and never expose them in client-side code
- Implement proper token management including logout when sessions are no longer needed
- For server-to-server integrations, consider using API tokens instead
- Enable Multi-Factor Authentication for sensitive accounts
Common Use Cases
- Interactive web applications: User sessions in browser-based interfaces
- Mobile applications: Authentication for native mobile clients
- Short-lived integrations: Temporary access for one-time operations
For long-lived server-to-server integrations, API tokens (covered in the next section) are recommended over session tokens.
Authentication Flow
A typical authentication flow involves:- Authenticating with username and password
- Completing any required MFA challenges (if enabled)
- Using the resulting session token for API operations
- Checking token validity when needed
- Logging out to terminate the session when finished
In this section
1. Authentication with username and password
Session-based authentication is the standard method for authenticating users in the Circularo system.
2. Session Token Status Check
Before making API calls that require authentication, it’s important to verify whether your existing session token is still valid.
3. Login with MFA
Multi-Factor Authentication (MFA) provides an additional layer of security for your Circularo account by requiring a second verification step after entering your password.
4. Login with Recovery Code
Recovery codes provide an emergency access method when you cannot use your standard Multi-Factor Authentication (MFA) methods.