Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casdoor/nuxt-auth
Nuxt.js Authentication based on Casdoor, live demo: https://nuxt-auth.casdoor.org
https://github.com/casdoor/nuxt-auth
auth authentication casbin casdoor example iam middleware nuxt nuxtjs oauth oidc plugin spa sso ssr vue
Last synced: 2 months ago
JSON representation
Nuxt.js Authentication based on Casdoor, live demo: https://nuxt-auth.casdoor.org
- Host: GitHub
- URL: https://github.com/casdoor/nuxt-auth
- Owner: casdoor
- License: apache-2.0
- Created: 2024-02-18T17:12:30.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-04-06T12:43:48.000Z (10 months ago)
- Last Synced: 2024-04-06T13:36:16.911Z (10 months ago)
- Topics: auth, authentication, casbin, casdoor, example, iam, middleware, nuxt, nuxtjs, oauth, oidc, plugin, spa, sso, ssr, vue
- Language: Vue
- Homepage: https://nuxt.com
- Size: 976 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nuxt-auth
=======A Nuxt.js example for Casdoor SSO.
## Demo video
![Login](./static/demo.gif)
## Configuration
The default [config.js](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
npm run dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.