auth0-samples / auth0-electron-samples Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] Auth0-Electron Sample
License: MIT License
[DEPRECATED] Auth0-Electron Sample
License: MIT License
(AUTH-3912)
Lock options must include audience and oidcConformant: true
Hi! :)
I am looking to implement Auth0 Lock in my Electorn app, and was looking through this sample. But had two questions.
Thanks
Tony
After typing username/password and press login button using the Auth0 form, there is a blank console error of 400
.
There is also a log in my terminal showing
[18972:1226/194540.220:ERROR:CONSOLE(0)] "Blocked script execution in 'data:text/html;charset=utf-8;base64, ***there is a hash in here, I dont know if its safe to post it here*** because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
Hi there Auth0 team ๐ This repository and the original have both been inactive for some time. It looks like this particular example hasn't gotten real attention since April 2017. Any updates for developers considering to use it? Should developers expect to follow the approach outlined in this blog post?
I'm in the process of setting up Auth0 logins for an Electron app. Working between this sample and the most recent Auth0 Lock docs, I've got social logins working, but username-password authentication always returns the "We're sorry, something went wrong when attempting to log in."
From what I've seen in other git issues, it seems the PKCE flow might be what I need to implement, but I've been struggling to do so. An out of the box solution with Lock would be great, obviously, but some help/a sample for PKCE with Electron would be hugely appreciated if that's what I need.
I tested the connection to Facebook and Goodle from Auth0 website and it works fine. In my electron app the usual login with email and password works fine but the Social logins do not work.
In the console I get something like : d.addEventListener is not a function, on s.loginPhonegap . But I don't use phonegap for electron so I am not sure why this does not work
I cannot test this project with my personal clientId and domain.
After execute npm install
and npm start
I click on login with Facebook or Google or any else and I receive a popup with this error Cannot set property 'openerId' of undefined
Full stacktrace :
Uncaught Exception:
TypeError: Cannot set property 'openerId' of undefined
at mergeBrowserWindowOptions (/Users/MaximeFr/Desktop/auth0-electron-samples-sample/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/guest-window-manager.js:44:35)
at EventEmitter.<anonymous> (/Users/MaximeFr/Desktop/auth0-electron-samples-sample/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/guest-window-manager.js:144:13)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
at WebContents.<anonymous> (/Users/MaximeFr/Desktop/auth0-electron-samples-sample/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:219:13)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:191:7)
Sample using lock v10.7 when up-to-date version is 10.10. (AUTH-3711)
Electron version : 1.4.2
The window name is auth0_signup_popup
With email and password signup method.
But registration went well because I have received the verification email.
In an attempt to figure out why clicking the Social Login button did not show anything, I noticed that the popup window created by Auth0.js defaults to the BrowserWindow options of the parent window.
In my case, the parent window had the 'show' property set to false, and therefore the Social popup never showed up.
It's probably a good idea to set a few popupOptions on Auth0Lock to avoid this issue and other potential harmful situations. In particular, Electron's security documentation strongly recommends disabling nodeIntegration and enabling contextIsolation when you receive code from a remote destination.
Sample use 10.2 version of auth0 lock when up-to-date version is 10.7 (AUTH-3541)
(AUTH-3851)
Sample using outdated version of electron and auth0-lock.
I can't seem to get file:///
to work with our Electron app. I was able to get things working by adding the full callback file:///
url into the Allowed Callback URLs
setting. The callbacks work just fine on the web using the callback with https://*.netlify.com/login
. Does it now have to be something like file://*
or file:///*
?
Client ID: QR579kSOEqhOqPAfqjfTPHaz5hJPvEKT
Auth0 lock version: 11.0.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.