πDiscovery Configuration
What You'll Learn
Why Use Discovery?
Benefits of Discovery Configuration
Discovery vs Manual Configuration
// β Manual configuration (not recommended)
const config = {
authorizationEndpoint: 'https://account.sbx.oten.dev/v1/oauth/authorize',
tokenEndpoint: 'https://account.sbx.oten.dev/v1/oauth/token',
// ... hardcoded values that may change
};
// β
Discovery configuration (recommended)
const response = await fetch('https://account.sbx.oten.dev/.well-known/openid-configuration');
const config = await response.json();
// Automatically gets latest configurationQuick Start
Basic Discovery Implementation
Framework-Specific Examples
Express.js with Passport
React SPA with OIDC Client
Python Flask with Authlib
Configuration Caching and Refresh
Smart Caching Strategy
Testing Discovery Configuration
Configuration Validation
Last updated