191963 (1) [Avatar] Offline
#1
I have started reading this book and so far it is great. Only issue I have so far is that the authentication/login with auth0 is not really explained. In chapter 2 it mentions that there is a login screen and if users are not logged in then they will be presented with this screen.

There is then just mention of including the auth0 libraries, and when using the code provided from github to update the domain/client id with our own account information in the appendices.

When looking at the source on github there seems to be a LoginService, LoginController, etc, that have no explanation in the book.

Where can I find more info on how this works?
Lukas Ruebbelke (107) [Avatar] Offline
#2
Thanks and great question! I am going to write up a post outline how Auth0 works in conjunction with the book. I will let you know as soon as it is out. Thanks!

In the meantime, definitely check out the awesome documentation on the Auth0 website.
369090 (1) [Avatar] Offline
#3
For some reason the default auth0 account returns a 403. If you register for your own account on auth0.com and you use the .eu CDN you need to change lines 22 and 24 of karma.conf.js:


'https://cdn.eu.auth0.com/js/lock-6.js',
'https://cdn.eu.auth0.com/w2/auth0-angular-4.js',
Rodrigo López Dato (1) [Avatar] Offline
#4
Lock versions prior to 7.3.2 do not support EU accounts out of the box. You can review all versions of Lock and the changelog here: https://github.com/auth0/lock/blob/master/CHANGELOG.md

Also, keep in mind that pinning to a major version (e.g. lock-7.js) will automatically update to all minor and patch versions, which might not be desirable in production. Always pin to a specific version (e.g. lock-7.9.2.js) if possible. The same applies to auth0-angular.