{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/lock/issues/735","repository_url":"https://api.github.com/repos/auth0/lock","labels_url":"https://api.github.com/repos/auth0/lock/issues/735/labels{/name}","comments_url":"https://api.github.com/repos/auth0/lock/issues/735/comments","events_url":"https://api.github.com/repos/auth0/lock/issues/735/events","html_url":"https://github.com/auth0/lock/issues/735","id":191997329,"number":735,"title":"Auth0 Lock not using \"audience\" parameter correctly","user":{"login":"postalservice14","id":46067,"avatar_url":"https://avatars.githubusercontent.com/u/46067?v=3","gravatar_id":"","url":"https://api.github.com/users/postalservice14","html_url":"https://github.com/postalservice14","followers_url":"https://api.github.com/users/postalservice14/followers","following_url":"https://api.github.com/users/postalservice14/following{/other_user}","gists_url":"https://api.github.com/users/postalservice14/gists{/gist_id}","starred_url":"https://api.github.com/users/postalservice14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postalservice14/subscriptions","organizations_url":"https://api.github.com/users/postalservice14/orgs","repos_url":"https://api.github.com/users/postalservice14/repos","events_url":"https://api.github.com/users/postalservice14/events{/privacy}","received_events_url":"https://api.github.com/users/postalservice14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-28T12:45:58Z","updated_at":"2016-11-30T13:10:41Z","closed_at":"2016-11-29T17:15:59Z","body":"When the lock screen shows and I click the \"Last time you logged in with {{your_email}}\" button, it works great. It returns a token that works for the audience specified. But when I click \"Not your Account\" and then type in my username and password and click submit. It sends the correct audience to auth0 but the token returned does not work for that audience.\r\n\r\nHere is my lock configuration:\r\n\r\n```js\r\nthis.lock = new Auth0Lock(\r\n      config.clientId,\r\n      config.auth0Domain,\r\n      {\r\n        theme: {\r\n          primaryColor: '#8dc63f'\r\n        },\r\n        closable: false,\r\n        allowSignUp: false,\r\n        languageDictionary: {\r\n          title: \"Sign In\"\r\n        },\r\n        auth: {\r\n          params: {\r\n            audience: config.apiBasePath\r\n          },\r\n          redirectUrl: BASE_PATH + '/auth/login',\r\n          responseType: 'token id_token',\r\n        }\r\n      }\r\n    );\r\n```\r\n\r\nThanks in advance for your help."},"comment":{"url":"https://api.github.com/repos/auth0/lock/issues/comments/263869579","html_url":"https://github.com/auth0/lock/issues/735#issuecomment-263869579","issue_url":"https://api.github.com/repos/auth0/lock/issues/735","id":263869579,"user":{"login":"glena","id":5647310,"avatar_url":"https://avatars.githubusercontent.com/u/5647310?v=3","gravatar_id":"","url":"https://api.github.com/users/glena","html_url":"https://github.com/glena","followers_url":"https://api.github.com/users/glena/followers","following_url":"https://api.github.com/users/glena/following{/other_user}","gists_url":"https://api.github.com/users/glena/gists{/gist_id}","starred_url":"https://api.github.com/users/glena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glena/subscriptions","organizations_url":"https://api.github.com/users/glena/orgs","repos_url":"https://api.github.com/users/glena/repos","events_url":"https://api.github.com/users/glena/events{/privacy}","received_events_url":"https://api.github.com/users/glena/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T13:10:41Z","updated_at":"2016-11-30T13:10:41Z","body":"You should send that in the login method\r\n```\r\n    this.auth = new auth0.WebAuth({\r\n      domain: config.auth0Domain,\r\n      clientID: config.clientId,\r\n      responseType: 'id_token token',\r\n      redirectUri: BASE_PATH + '/auth/login'\r\n    });\r\n\r\n      this.auth.client.login({\r\n        connection: 'tests', // replace with the correct connection name\r\n        username: '...',\r\n        password: '...',\r\n        audience: config.apiBasePath\r\n      }, function(err, data) {\r\n\r\n      ...\r\n\r\n      });\r\n```"}}
{"actor":{"display_login":"glena"}}