Coder Social home page Coder Social logo

auth0-electron-samples's People

Contributors

aaguiarz avatar chenkie avatar iannyanes avatar maximefrancoeur avatar mehreencs87 avatar vmartynets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auth0-electron-samples's Issues

Does this use the PKCE grant flow?

Hi! :)

I am looking to implement Auth0 Lock in my Electorn app, and was looking through this sample. But had two questions.

  1. For Electron Apps, what is the appropriate grant type to use (Regular Authorization Code, PKCE or Implicit?)
  2. Which grant type does Lock implement for Electron clients?

Thanks

Tony

400 error, block script execution

After typing username/password and press login button using the Auth0 form, there is a blank console error of 400.
capture

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.

Repository unmaintained

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?

Username-Password authentication not working

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.

Glitchy UI on login

Not sure why, but myself and multiple others on my team have reproduced this on Mac OS. The login dialog causes some weird glitch effects related to the css transitions/shadows used in the auth0 login widget, here are some screenshots

screen shot 2016-10-31 at 5 58 11 pm

screen shot 2016-10-31 at 5 57 58 pm

Failed to load resource

Hey! I'm trying to run the sample and for some reason I'm not able to. Whenever I go to click login, these are the errors I get in the console.

https://i.imgur.com/X2dmR7r.png

Auth0 Social logins do not work with electron

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

Cannot set property 'openerId' of undefined

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)

oidc incompatible

(AUTH-4211)
When I'm trying to login in app with OIDC Conformant enabled, I get this error:
image

JavaScript Error: Uncaught Exception

AUTH-3443
After execute npm install and npm start, click on login with any social or database connection and even on signup, received a popup with this error Cannot set property 'openerId' of undefined.
Both Projects : this Seed and my app results in this issue.
electron

Social login popup window security

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.

Auth0 Electron Callback URL mismatch

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

Callback mismatch

Callback mismatch

Auth0 lock setup

Auth0 lock setup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.