Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casdoor/nextjs-auth
Next.js Authentication based on Casdoor, live demo: https://nextjs-auth.casdoor.org
https://github.com/casdoor/nextjs-auth
auth authentication cas casbin casdoor example iam middleware next nextjs nextjs13 oauth oidc plugin react reactjs saml sso ssr
Last synced: 3 months ago
JSON representation
Next.js Authentication based on Casdoor, live demo: https://nextjs-auth.casdoor.org
- Host: GitHub
- URL: https://github.com/casdoor/nextjs-auth
- Owner: casdoor
- License: apache-2.0
- Created: 2024-01-15T10:27:46.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-22T17:18:52.000Z (10 months ago)
- Last Synced: 2024-03-22T18:42:01.638Z (10 months ago)
- Topics: auth, authentication, cas, casbin, casdoor, example, iam, middleware, next, nextjs, nextjs13, oauth, oidc, plugin, react, reactjs, saml, sso, ssr
- Language: JavaScript
- Homepage: https://nextjs.org
- Size: 271 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nextjs-auth
=======A Next.js example for Casdoor SSO.
Live demo: https://nextjs-auth.casdoor.org
## Demo video
![Login](./img/demo.gif)
## Configuration
The default [config.js](app/conf.js) points to the Casdoor demo site. Change it to your own Casdoor:
```js
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:
```bash
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.