Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casdoor/casdoor-electron-example
An Electron app example for Casdoor based on Casdoor JS SDK: https://github.com/casdoor/casdoor-js-sdk
https://github.com/casdoor/casdoor-electron-example
casdoor electron iam javascript js oauth oidc saml sdk sso typescript
Last synced: 2 months ago
JSON representation
An Electron app example for Casdoor based on Casdoor JS SDK: https://github.com/casdoor/casdoor-js-sdk
- Host: GitHub
- URL: https://github.com/casdoor/casdoor-electron-example
- Owner: casdoor
- License: apache-2.0
- Created: 2022-07-09T12:18:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-26T16:00:10.000Z (over 2 years ago)
- Last Synced: 2024-02-22T12:38:38.255Z (11 months ago)
- Topics: casdoor, electron, iam, javascript, js, oauth, oidc, saml, sdk, sso, typescript
- Language: JavaScript
- Homepage: https://github.com/casdoor/casdoor
- Size: 780 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# casdoor-electron-example
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app) and [Electron](https://www.electronjs.org/).
## Init example
You need to init requires 6 parameters, which are all string type:
| Name | Description | Path |
| -------------------- | ------------------------------------------------------------------------------------------------ | ---------------------- |
| serverUrl | your Casdoor server URL | `src/App.js` |
| clientId | the Client ID of your Casdoor application | `src/App.js` |
| appName | the name of your Casdoor application | `src/App.js` |
| redirectPath | the path of the redirect URL for your Casdoor application, will be `/callback` if not provided | `src/App.js` |
| clientSecret | the Client Secret of your Casdoor application | `src/App.js` |
| casdoorServiceDomain | your Casdoor server URL | `public/electron.js` |If you don't set these parameters, this project will use the [Casdoor online demo]( https://door.casdoor.com) as the defult Casdoor server and use the [Casnode](https://door.casdoor.com/applications/app-casnode) as the default Casdoor application.
## Available Scripts
In the project directory, you can run:
### `npm run dev` or `yarn dev`
Builds the electron app and run this app.
### `npm run make` or `yarn make`
Package and distribute your application.
It will create the `out` folder where your package will be located:
`// Example for macOS
out/
├── out/make/zip/darwin/x64/my-electron-app-darwin-x64-1.0.0.zip
├── ...
└── out/my-electron-app-darwin-x64/my-electron-app.app/Contents/MacOS/my-electron-ap`