The redirect URL that you configure in Lock is the URL that will complete the login process in your application so the expectation is that this URL allows anonymous access.
The flow is the following:
- User accesses your application
- Application detects anonymous user and requests user credentials (by showing Lock)
- User provides their credentials
- Lock requests Auth0 service to validate credentials and indicates the URL to the Auth0 service should return the response
- Auth0 service processes the credentials and returns a response to the redirect URL
- Application - the configured redirect URL to be more specific - processes the response
In step 6. the response can either mean that the user did authenticate with success or that there was an error and authentication did not complete. This means that this URL must allow anonymous access.