Authyo + Firebase Integration
Integration: Firebase
Integrate Firebase with Authyo to enable custom authentication flows using Firebase tokens.
Each user/application can have its own Firebase configuration
and isolated authentication with custom firebase token generation.
Overview
The Firebase Integration allows Authyo to dynamically initialize Firebase per user/application
using stored service account credentials. This enables:
- Custom Firebase token generation for authentication.
- Each user/application can use its own Firebase project.
Benefits
- Per-user isolation: Each user/application has its own Firebase configuration.
- Dynamic authentication: Generate Firebase custom tokens on demand for user authentication.
Prerequisites
- A Firebase project with a service account.
- Service account JSON or the required fields:
- Service account email
- Project ID
- Private key
- Authyo access with permissions to configure Integration.
Activation Steps
- Log in to Authyo: Open your Authyo account.
- Navigate to Integration: Go to the Integration section on your dashboard.
- Choose Firebase Integration: Select Firebase from the list.
- Activate Integration: Click Activate to enable it for your account.
Integration Configuration
Step 1: Enter Firebase Details
After activating the Integration, provide Firebase credentials either by uploading a JSON file
or manually entering the fields:
- Service Account Email
- Private Key
- Other optional fields (like database URL if needed)
Step 2: Integration Testing
- Verify token generation: Call the curresponding endpoint for a test user/application.
- Check Firestore access: Perform read/write operations using the generated token.
- Monitor logs: Check Authyo logs for errors during initialization or token generation.
Troubleshooting
- Credential Issues: Ensure service account email, project ID, and private key are correct.
- JSON Parsing Errors: Replace escaped
\n
in private key with actual newline characters.