Learn how to secure your Electron applications using standards like OpenID Connect and OAuth 2.0.
This is the sample Electron project from the article published on Auth0 Blog: How to Secure Electron Apps with OpenID Connect and OAuth 2.0
This project uses the following technologies:
To run this project, follow these steps:
- Clone this repository (
git clone https://github.com/auth0-blog/electron-openid-oauth) - Move to the
electron-openid-oauth/backendfolder in your machine and runnpm install - Register the API with Auth0
- Rename the
env-variables.json.templateconfig file intoenv-variables.jsonand fill the required Auth0 parameters - Launch the API by running
npm start - Move to the
electron-openid-oauth/frontendfolder in your machine and runnpm install - Register the Electron application with Auth0
- Rename the
env-variables.json.templateconfig file intoenv-variables.jsonand fill the required Auth0 parameters - Launch the Electron app by running
npm start
The following is a screenshot of the Electron application screen after logging in and clicking the Get Private Message button:
