Mode Overview
Theauth.mode literal accepts one of four values: 'public', 'transparent', 'local', 'remote'.
Mode Comparison
Public Mode
No authentication required. All requests receive an anonymous session.How It Works
Configuration Options
Use Cases
Development
Rapid prototyping without auth setup overhead
Public APIs
Endpoints that don’t require user identity
Transparent Mode
Pass-through tokens from an external identity provider. FrontMCP validates tokens but doesn’t issue them.How It Works
Configuration Options
Provider Examples
- Auth0
- Okta
- Azure AD
Use Cases
Existing IdP Integration
Your organization already uses Auth0, Okta, or similar
Single Provider
All users authenticate through one identity provider
Local Mode
FrontMCP acts as a full OAuth 2.1 authorization server with a built-in login form. Self-contained auth server with built-in user management.Remote Mode
FrontMCP acts as an OAuth 2.1 authorization server that proxies user authentication to an upstream IdP. End users never submit credentials to FrontMCP directly — they’re redirected to the upstream IdP, and FrontMCP exchanges the resulting upstream code/tokens before issuing its own session token to the MCP client.How It Works
Configuration Options
Consent Configuration
Incremental Authorization
Federated Authentication Configuration
Configure how state parameters are validated during federated (multi-provider) authentication flows.OAuth Endpoints
Local and remote modes expose standard OAuth endpoints:Use Cases
Multi-Provider Federation
Combine multiple IdPs under one session (Slack + GitHub + custom)
Progressive Authorization
Users authorize apps incrementally as needed
Full Token Control
Custom token lifetimes, scopes, and refresh behavior
Built-in Consent UI
Let users choose which tools/resources to grant
Mode Selection Flowchart
Security Comparison
Token Verification Flow
Next Steps
Remote OAuth
Configure upstream IdP integration
Local OAuth
Set up self-contained authentication
Progressive Authorization
Implement incremental app authorization
Production Deployment
Security checklist for production