Skip to content
This repository was archived by the owner on Jul 18, 2020. It is now read-only.
This repository was 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

Description

@Swatto

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,
    });
    // ...
  });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions