Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the plugin to work with Lock 10? #19

Open
zenanbach opened this issue Aug 16, 2016 · 2 comments
Open

Update the plugin to work with Lock 10? #19

zenanbach opened this issue Aug 16, 2016 · 2 comments

Comments

@zenanbach
Copy link

Hi,
I see this was just updated less than a month ago to support Lock 9. I would like to make use of Lock 10's custom user fields for a project, without having to rewrite a custom login to work between Discourse and Auth0. Basically so that the user is required to fill out a small questionnaire before they signup, letting us know what type of user they are.
from the Migration Guide:
https://auth0.com/docs/libraries/lock/v10/migration-guide

'The show method no longer takes any arguments. You pass the options to the constructor and you listen for an authenticated event instead of providing a callback. You can listen for this event with the on method.'

I almost got this working, but was having a difficult time with the Discourse side.
Anybody have it in them to whip something up real quick or at least point me in the right direction? I sold my client on Auth0 because of the ease of integration with Discourse, our community engine. I'd love to get this working with Lock 10.
Many thanks in advance
Zach

@leog
Copy link

leog commented Nov 21, 2016

@zenanbach I've been working on having this plugin support Lock 10 and is working pretty well. The code is here: https://github.com/PartidoDigital/Discourse-App-Auth0-Plugin/blob/master/assets/javascripts/auth0.js

Be careful with copying code from it as I insert a custom CSS as part of this plugin initialization.

@schickling
Copy link

Any official comment on this @auth0 @jfromaniello?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants