O'Reilly logo

Building Cross-Platform Desktop Applications with Electron by Muhammed Jasim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing oAuth authentication with Electron

We have checked how we can authenticate an application with the Facebook SDK. There are some other situations where we have to implement oAuth authentication, which is not a simple task. With oAuth, the authentication process will be happening at a remote URL and will be redirected to the client domain when the authentication is successful. So we need to handle redirections. Usually, it's easy with a normal web application as the server will simply redirect to the domain. But with Electron, we don't have any domain running from the local file and the server does not have any access to our local HTML file embedded inside the Electron shell. So, it's a challenge to handle this with Electron. Let's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required