SSO / OAuth
DevDocs supports OAuth 2.0 / OIDC providers out of the box.
Supported Providers
- GitHub
- Microsoft (Entra ID)
- Any OIDC-compliant provider
Configuration
export default defineNuxtConfig({
runtimeConfig: {
oauth: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
},
},
},
})
Callback URL
Register https://yourdomain.com/auth/callback/:provider in your OAuth app settings.