Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Domain is not used to download Lock 's js configuration for on premise installation #177

Open
Swatto opened this issue Sep 14, 2017 · 0 comments

Comments

@Swatto
Copy link

Swatto commented Sep 14, 2017

Overview

I work on a project with two environments:

  • One using cloud auth0 (for dev)
  • The other is using on premise auth0 (testing and production).

Behaviors

The code loads the configuration for the domain and the client ID on API for the appropriate build. But when Lock is displayed, it loads a javascript file with installation configuration:

  • The cloud installation works well when the /client/{id}.js is loaded with the cloud instance of auth0.
  • The on premise doesn't use the domain from the options of the constructor: it use the cdn.auth0.com domain.

I tried using the configurationDomain also but it doesn't solved the issue.

Technical details:

  • iOS version: 10.3
  • React Native version: 0.47.2
  • React version: 16.0.0-alpha.12
export function auth0Login(clientId, domain) {
  return new Promise((resolve, reject) => {
    const lock = new Lock({
      clientId,
      domain,
    });
    // ...
  });
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant