Skip to content

casdoor/nextjs-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f08e565 · Mar 22, 2024

History

13 Commits
Mar 22, 2024
Jan 21, 2024
Jan 21, 2024
Jan 21, 2024
Jan 15, 2024
Feb 2, 2024
Jan 21, 2024
Feb 2, 2024
Jan 21, 2024
Mar 22, 2024
Mar 22, 2024

Repository files navigation

nextjs-auth

A Next.js example for Casdoor SSO.

Live demo: https://nextjs-auth.casdoor.org

Demo video

Login

Configuration

The default config.js points to the Casdoor demo site. Change it to your own Casdoor:

const sdkConfig = {
  serverUrl: "https://door.casdoor.com",
  clientId: "294b09fbc17f95daf2fe",
  clientSecret: "dd8982f7046ccba1bbd7851d5c1ece4e52bf039d",
  organizationName: "casbin",
  appName: "app-vue-python-example",
  redirectPath: "/callback",
}

export default sdkConfig;

Getting started

run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.