Skip to content
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

Introduce clientBaseUrl and languageBaseUrl options to deprecate assetsUrl #601

Merged
merged 1 commit into from
Sep 12, 2016

Conversation

cristiandouce
Copy link
Contributor

@cristiandouce cristiandouce commented Sep 9, 2016

Introduce languageBaseUrl and cliengBaseUrl in replacement of assetsUrl.

  • The client will be fetched from ${clientBaseUrl}/${clientID}.js and will default to the CDN url including the region (e.g. https://cdn.eu.auth0.com/client). The region is inferred from the domain.
  • The language will be fetched from ${languageBaseUrl}/${lang}.js and will default to the CDN without the region (e.g. https://cdn.auth0.com/js/lock/${lockVersion}/).
  • The new options have priority over assetsUrl.
  • If assetsUrl is provided, keep the current behavior: fetch client from ${assetsUrl}/client/${clientID}.js and languages from {assetsUrl}/js/lock/${lockVersion}/${language}.js.

Pending

  • Add console.warn() of deprecation when using assetsUrl.

@hzalaz hzalaz changed the title Introduce clientBaseUrl and languageBaseUrl options to deprecate assetsUrl. Fixes auth0/lock#576 Introduce clientBaseUrl and languageBaseUrl options to deprecate assetsUrl Sep 12, 2016
@hzalaz hzalaz merged commit c8a2ddc into master Sep 12, 2016
@hzalaz hzalaz deleted the fix/cdn-languages branch September 12, 2016 15:30
@hzalaz hzalaz modified the milestone: v10.3.0 Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants