Skip to content

Commit

Permalink
Fixing tenant override in popup mode (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrudge authored Sep 13, 2017
1 parent 5b638c8 commit 145519b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/web-auth/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Popup.prototype.authorize = function(options, cb) {
'scope',
'domain',
'audience',
'tenant',
'responseType',
'redirectUri',
'_csrf',
Expand Down
2 changes: 1 addition & 1 deletion test/web-auth/extensibility.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('auth0.WebAuth extensibility', function() {
it('should change the content of the params', function(done) {
stub(PopupHandler.prototype, 'load', function(url, relayUrl, options, cb) {
expect(url).to.be(
'https://test.auth0.com/authorize?client_id=...&response_type=code&owp=true&redirect_uri=http%3A%2F%2Fcustom-url.com'
'https://test.auth0.com/authorize?client_id=...&response_type=code&tenant=test&owp=true&redirect_uri=http%3A%2F%2Fcustom-url.com'
);
expect(relayUrl).to.be('https://test.auth0.com/relay.html');
expect(options).to.eql({});
Expand Down

0 comments on commit 145519b

Please sign in to comment.