{"action":"created","comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/comments/40385954","id":40385954,"diff_hunk":"@@ -93,8 +97,20 @@ context.acquireUserCode(resource, sampleParameters.clientId, 'es-mx', function (\n                 console.log(err);\n             }\n             else {\n-                console.log(tokenResponse);\n+                authorityUrl = sampleParameters.authorityHostUrl + '/' + sampleParameters.anothertenant;\n+                \n+                var context2 = new AuthenticationContext(authorityUrl, null, cache);","path":"sample/device-code-sample.js","position":43,"original_position":43,"commit_id":"07ba0a3443a80bf35c306c259b37afd87a47f8e3","original_commit_id":"07ba0a3443a80bf35c306c259b37afd87a47f8e3","user":{"login":"RandalliLama","id":4307330,"avatar_url":"https://avatars.githubusercontent.com/u/4307330?v=3","gravatar_id":"","url":"https://api.github.com/users/RandalliLama","html_url":"https://github.com/RandalliLama","followers_url":"https://api.github.com/users/RandalliLama/followers","following_url":"https://api.github.com/users/RandalliLama/following{/other_user}","gists_url":"https://api.github.com/users/RandalliLama/gists{/gist_id}","starred_url":"https://api.github.com/users/RandalliLama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandalliLama/subscriptions","organizations_url":"https://api.github.com/users/RandalliLama/orgs","repos_url":"https://api.github.com/users/RandalliLama/repos","events_url":"https://api.github.com/users/RandalliLama/events{/privacy}","received_events_url":"https://api.github.com/users/RandalliLama/received_events","type":"User","site_admin":false},"body":"Why are you adding a second AuthenticationContext?","created_at":"2015-09-24T23:29:19Z","updated_at":"2015-09-24T23:29:19Z","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/pull/83#discussion_r40385954","pull_request_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/comments/40385954"},"html":{"href":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/pull/83#discussion_r40385954"},"pull_request":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83","id":45951098,"html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/pull/83","diff_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/pull/83.diff","patch_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/pull/83.patch","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/83","number":83,"state":"open","locked":false,"title":"Dev mega refresh token","user":{"login":"weijjia","id":1166233,"avatar_url":"https://avatars.githubusercontent.com/u/1166233?v=3","gravatar_id":"","url":"https://api.github.com/users/weijjia","html_url":"https://github.com/weijjia","followers_url":"https://api.github.com/users/weijjia/followers","following_url":"https://api.github.com/users/weijjia/following{/other_user}","gists_url":"https://api.github.com/users/weijjia/gists{/gist_id}","starred_url":"https://api.github.com/users/weijjia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weijjia/subscriptions","organizations_url":"https://api.github.com/users/weijjia/orgs","repos_url":"https://api.github.com/users/weijjia/repos","events_url":"https://api.github.com/users/weijjia/events{/privacy}","received_events_url":"https://api.github.com/users/weijjia/received_events","type":"User","site_admin":false},"body":"Changes:\r\n1. modify cache logic to support cross tenant refresh token\r\n2. modify the cache logic for current device code flow, acquireTokenWithDeviceCode won't do cache lookup, it will only store returned token into cache, for cache lookup developer needs to call acquireToken. \r\n3. add another property 'extraQP' in authenticationcontext. This could be used to set the extra query parameter passed to tokenendpoint.  ","created_at":"2015-09-24T21:17:22Z","updated_at":"2015-09-24T23:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a73ec4b60d9967d4ce2a6a23c501d185a31978fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83/commits","review_comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83/comments","review_comment_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/83/comments","statuses_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/statuses/07ba0a3443a80bf35c306c259b37afd87a47f8e3","head":{"label":"AzureAD:dev_megaRefreshToken","ref":"dev_megaRefreshToken","sha":"07ba0a3443a80bf35c306c259b37afd87a47f8e3","user":{"login":"AzureAD","id":2966316,"avatar_url":"https://avatars.githubusercontent.com/u/2966316?v=3","gravatar_id":"","url":"https://api.github.com/users/AzureAD","html_url":"https://github.com/AzureAD","followers_url":"https://api.github.com/users/AzureAD/followers","following_url":"https://api.github.com/users/AzureAD/following{/other_user}","gists_url":"https://api.github.com/users/AzureAD/gists{/gist_id}","starred_url":"https://api.github.com/users/AzureAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzureAD/subscriptions","organizations_url":"https://api.github.com/users/AzureAD/orgs","repos_url":"https://api.github.com/users/AzureAD/repos","events_url":"https://api.github.com/users/AzureAD/events{/privacy}","received_events_url":"https://api.github.com/users/AzureAD/received_events","type":"Organization","site_admin":false},"repo":{"id":17923502,"name":"azure-activedirectory-library-for-nodejs","full_name":"AzureAD/azure-activedirectory-library-for-nodejs","owner":{"login":"AzureAD","id":2966316,"avatar_url":"https://avatars.githubusercontent.com/u/2966316?v=3","gravatar_id":"","url":"https://api.github.com/users/AzureAD","html_url":"https://github.com/AzureAD","followers_url":"https://api.github.com/users/AzureAD/followers","following_url":"https://api.github.com/users/AzureAD/following{/other_user}","gists_url":"https://api.github.com/users/AzureAD/gists{/gist_id}","starred_url":"https://api.github.com/users/AzureAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzureAD/subscriptions","organizations_url":"https://api.github.com/users/AzureAD/orgs","repos_url":"https://api.github.com/users/AzureAD/repos","events_url":"https://api.github.com/users/AzureAD/events{/privacy}","received_events_url":"https://api.github.com/users/AzureAD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs","description":"","fork":false,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs","forks_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/forks","keys_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/teams","hooks_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/hooks","issue_events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/events","assignees_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/tags","blobs_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/languages","stargazers_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/stargazers","contributors_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/contributors","subscribers_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/subscribers","subscription_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/subscription","commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/merges","archive_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/downloads","issues_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/releases{/id}","created_at":"2014-03-19T22:57:40Z","updated_at":"2015-09-17T14:43:31Z","pushed_at":"2015-09-24T21:17:23Z","git_url":"git://github.com/AzureAD/azure-activedirectory-library-for-nodejs.git","ssh_url":"git@github.com:AzureAD/azure-activedirectory-library-for-nodejs.git","clone_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs.git","svn_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs","homepage":null,"size":709,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":13,"forks":18,"open_issues":13,"watchers":22,"default_branch":"master"}},"base":{"label":"AzureAD:dev","ref":"dev","sha":"c3d1acb64df5968db0284f08eaf63212136b29a8","user":{"login":"AzureAD","id":2966316,"avatar_url":"https://avatars.githubusercontent.com/u/2966316?v=3","gravatar_id":"","url":"https://api.github.com/users/AzureAD","html_url":"https://github.com/AzureAD","followers_url":"https://api.github.com/users/AzureAD/followers","following_url":"https://api.github.com/users/AzureAD/following{/other_user}","gists_url":"https://api.github.com/users/AzureAD/gists{/gist_id}","starred_url":"https://api.github.com/users/AzureAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzureAD/subscriptions","organizations_url":"https://api.github.com/users/AzureAD/orgs","repos_url":"https://api.github.com/users/AzureAD/repos","events_url":"https://api.github.com/users/AzureAD/events{/privacy}","received_events_url":"https://api.github.com/users/AzureAD/received_events","type":"Organization","site_admin":false},"repo":{"id":17923502,"name":"azure-activedirectory-library-for-nodejs","full_name":"AzureAD/azure-activedirectory-library-for-nodejs","owner":{"login":"AzureAD","id":2966316,"avatar_url":"https://avatars.githubusercontent.com/u/2966316?v=3","gravatar_id":"","url":"https://api.github.com/users/AzureAD","html_url":"https://github.com/AzureAD","followers_url":"https://api.github.com/users/AzureAD/followers","following_url":"https://api.github.com/users/AzureAD/following{/other_user}","gists_url":"https://api.github.com/users/AzureAD/gists{/gist_id}","starred_url":"https://api.github.com/users/AzureAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzureAD/subscriptions","organizations_url":"https://api.github.com/users/AzureAD/orgs","repos_url":"https://api.github.com/users/AzureAD/repos","events_url":"https://api.github.com/users/AzureAD/events{/privacy}","received_events_url":"https://api.github.com/users/AzureAD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs","description":"","fork":false,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs","forks_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/forks","keys_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/teams","hooks_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/hooks","issue_events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/events","assignees_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/tags","blobs_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/languages","stargazers_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/stargazers","contributors_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/contributors","subscribers_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/subscribers","subscription_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/subscription","commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/merges","archive_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/downloads","issues_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/releases{/id}","created_at":"2014-03-19T22:57:40Z","updated_at":"2015-09-17T14:43:31Z","pushed_at":"2015-09-24T21:17:23Z","git_url":"git://github.com/AzureAD/azure-activedirectory-library-for-nodejs.git","ssh_url":"git@github.com:AzureAD/azure-activedirectory-library-for-nodejs.git","clone_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs.git","svn_url":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs","homepage":null,"size":709,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":13,"forks":18,"open_issues":13,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83"},"html":{"href":"https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/pull/83"},"issue":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/83"},"comments":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-nodejs/statuses/07ba0a3443a80bf35c306c259b37afd87a47f8e3"}}}}