Overview
Authentication configuration allows Sate to access your protected endpoints on behalf of your customers. This enables secure, personalized interactions while maintaining proper authorization controls.Authentication Types
DevSpace supports both authenticated and unauthenticated functions:- Unauthenticated functions: Public endpoints that don’t require user credentials
- Authenticated functions: Protected endpoints that require customer authentication
Configuration Settings
Set up authentication on the DevSpace platform by providing:Authentication Flow
Here’s how Sate handles authentication when executing protected functions:Function Execution Request
Sate determines it needs to call an authenticated function to help the customer
Implementation Requirements
To use authenticated functions, your login endpoint must:1. Accept State Parameter
Your login URL must accept astate parameter that we’ll include:
2. Implement Callback Integration
After successful authentication, send a POST request to our callback endpoint: Endpoint:https://api.eusate.com/api/v1/lab/login/callback/
Authentication: You must include your API key in the Authorization header. Get your API key from the platform settings.
Required Headers:
Authorization: Bearer YOUR_API_KEYContent-Type: application/json
auth_token: The customer’s authentication tokenauth_token_expires_at_seconds: Token expiration time (Unix timestamp)state: The state parameter from the original login URL
Security Considerations
Tokens should have appropriate expiration times and be invalidated after use when possible.