-
Notifications
You must be signed in to change notification settings - Fork 494
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
Bugfix for WebExtension #1054
Bugfix for WebExtension #1054
Conversation
Can you approve this change to handle WebExtensions, please? The auth0-lock and auth0-js projects are affected by this change. I used auth0-chrome which is supposed to work for the extensions, but this library is not adapted and poses problems of ergonomics. Thanks in advance.
@STK913 I'm not seeing any mention or usage of Auth0 JS or Lock JS on that library's code. If this affecting |
Hello, this does not concern auth0-chrome, only auth0-js and auth0-lock. I have not managed to compile the Auth0 project, so I modified the getLocationFromUrl method directly in the following scripts: After parsing Github projects, this method is declared in the object.js file of the auth0-js library and the url_utils.js file of the auth0-lock library. |
I created an example project here: https://github.com/STK913/WebExtensionForAuth0 Edit the AUTH0_CLIENT_ID and AUTH0_DOMAIN variables in variables.ts.
Open the extension from the browser icon (next to the address bar). Modify directly www/vendor.js and apply the patch in the getLocationFromUrl method as I did in my commit (in 3 places). Ps: I also created a request here: auth0/lock#1750 |
This looks like it also affects Electron applications built using ember.js, and ember-electron. By default The plugin configures the serving protocol to be |
@techdragon Does that mean to say that there are further changes to be made to the PR here? |
@stevehobbsdev Yes, if the regex is going to be a whitelist, then it either needs to be somehow deliberately extensible by users, or should be expanded to include |
@techdragon Thanks. What I would suggest is to raise another PR with those changes and we can bring them in as well. |
Can you approve this change to handle WebExtensions, please? The auth0-lock and auth0-js projects are affected by this change. I used auth0-chrome which is supposed to work for the extensions, but this library is not adapted and poses problems of ergonomics.
Thanks in advance.