lastatus.blogg.se

Electron node js version
Electron node js version









electron node js version

# init npm with default properties npm init -yĪfter that, open the package. So, open a new terminal window and execute the following commands to create a directory to host the Electron app and initialize an npm project within it: # create a directory for your Electron app mkdir electron-openid-oauth You will build a simple Electron app that uses an Authorization Server (Auth0) to authenticate users and authorize the app to access protected data from a Resource Server (an external API). Now that you have configured Auth0, you can focus on learning how to secure an Electron application. Leave this page open as you will need to copy a few values from it soon to integrate Auth0 into your app. Click the Save Changes button at the bottom of the "Settings" page to complete the process. That's all the configuration you need to register your Electron application.

electron node js version

Despite the URL structure, you don't need to have an actual server listening to it you just need to have your Electron application listening to it, as you will learn later on. Once done, Auth0 will invoke your allowed callback URL to take your users back to your application and inform it about the outcome: was authentication successful or not? For security reasons, Auth0 will only call URLs registered in the Allowed Callback URLs field. When your users click a login button in your user interface, your Electron app will redirect them to the Auth0 Universal Login page, where Auth0 will carry out the authentication process.

electron node js version

When using Auth0 for user authentication, you don't need to build login or sign-up forms. Search for the Allowed Callback URLs field and put the following URL as its value: You are probably wondering what this URL is and why you need it. From there, click on the Settings tab to configure Auth0 to communicate with your Electron application. Once done, the Auth0 application page loads up.

electron node js version

  • Provide a name for your application, such as "Auth0 Electron Demo".
  • To start, open the Applications section of the Auth0 Dashboard and click on Create Application. If you don't have an Auth0 account yet, you can sign up for a free one right now. To use Auth0 with Electron, you need to register your Electron application with Auth0 and set up a communication bridge between them. Register an Electron Application with Auth0











    Electron node js version