Nextcloud Provider
Resources
- Nextcloud Documentation
- Nextcloud OAuth 2
- Nextcloud Clients and Client APIs
- Nextcloud User provisioning API
Setup
Callback URL
https://example.com/api/auth/callback/nextcloud
Environment Variables
AUTH_NEXTCLOUD_ID
AUTH_NEXTCLOUD_SECRET
AUTH_NEXTCLOUD_ISSUER
Configuration
import NextAuth from "next-auth"
import Nextcloud from "next-auth/providers/nextcloud"
const response = await NextAuth({
providers: [
Nextcloud({
clientId: process.env.AUTH_NEXTCLOUD_ID,
clientSecret: process.env.AUTH_NEXTCLOUD_SECRET,
issuer: process.env.AUTH_NEXTCLOUD_ISSUER,
}),
],
})