Skip to content

Change the tenant info endpoints#749

Merged
hzalaz merged 1 commit intomasterfrom
new-tenant-info
Dec 15, 2016
Merged

Change the tenant info endpoints#749
hzalaz merged 1 commit intomasterfrom
new-tenant-info

Conversation

@glena
Copy link
Copy Markdown
Contributor

@glena glena commented Dec 14, 2016

No description provided.

Comment thread src/core/index.js
export function extractTenantBaseUrlOption(opts, domain) {
if (opts.configurationBaseUrl && typeof opts.configurationBaseUrl === "string") {
return opts.configurationBaseUrl;
return urljoin(opts.configurationBaseUrl, 'info-v1.js');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now configurationBaseUrl is only the domain, it will append the blob endpoint.

Comment thread src/core/index.js
? "https://cdn." + parts[parts.length - 3] + DOT_AUTH0_DOT_COM
: AUTH0_US_CDN_URL;

return urljoin(domain, 'tenants', 'v1', `${tenant_name}.js`);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for cloud accounts we are going to get the blob like before from the CDN.

Comment thread src/core/index.js
return urljoin(domain, 'tenants', 'v1', `${tenant_name}.js`);
} else {
domain = domainUrl;
return urljoin(domainUrl, 'info-v1.js');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For non cloud or custom domains we get the blob from server. https://domain/info-v1.js

@hzalaz hzalaz merged commit 96dc000 into master Dec 15, 2016
@hzalaz hzalaz deleted the new-tenant-info branch December 15, 2016 20:35
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