{"action":"created","issue":{"url":"https://api.github.com/repos/paulvanbladel/aurelia-auth/issues/119","repository_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth","labels_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth/issues/119/comments","events_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth/issues/119/events","html_url":"https://github.com/paulvanbladel/aurelia-auth/issues/119","id":150408065,"number":119,"title":"Using the accessToken","user":{"login":"dmason511","id":5023447,"avatar_url":"https://avatars.githubusercontent.com/u/5023447?v=3","gravatar_id":"","url":"https://api.github.com/users/dmason511","html_url":"https://github.com/dmason511","followers_url":"https://api.github.com/users/dmason511/followers","following_url":"https://api.github.com/users/dmason511/following{/other_user}","gists_url":"https://api.github.com/users/dmason511/gists{/gist_id}","starred_url":"https://api.github.com/users/dmason511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmason511/subscriptions","organizations_url":"https://api.github.com/users/dmason511/orgs","repos_url":"https://api.github.com/users/dmason511/repos","events_url":"https://api.github.com/users/dmason511/events{/privacy}","received_events_url":"https://api.github.com/users/dmason511/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T15:57:36Z","updated_at":"2016-04-26T14:48:55Z","closed_at":"2016-04-26T14:48:55Z","body":"I am requesting a response type of 'id_token token' from IdentityServerv3 and getting  the expected id_token and access_token.\r\nI am successfully storing the id_token in localStorage but the access_token is not.\r\nI found the section in the authentication.js file that addresses the accessToken\r\nbut was unable to find anywhere that it actually stores the token.\r\n\r\n  Authentication.prototype.setToken = function setToken(response, redirect) {\r\n      var accessToken = response && response[this.config.responseTokenProp];\r\n      var tokenToStore = void 0;\r\n\r\n      if (accessToken) {\r\n        if ((0, _authUtilities.isObject)(accessToken) && (0, _authUtilities.isObject)(accessToken.data)) {\r\n          response = accessToken;\r\n        } else if ((0, _authUtilities.isString)(accessToken)) {\r\n          tokenToStore = accessToken;\r\n        }\r\n      }\r\n\r\nThe idToken has a section that does this\r\n if (idToken) {\r\n        this.storage.set(this.idTokenName, idToken);\r\n      }\r\n\r\nHow do I store the accesstoken in localStorage?\r\nHow can I pass the accesstoken instead of the idToken to my WebApi?\r\nAre both the storage question and accessToken configurable via authconfig file?\r\n\r\nThanks,\r\nDM\r\n "},"comment":{"url":"https://api.github.com/repos/paulvanbladel/aurelia-auth/issues/comments/214770169","html_url":"https://github.com/paulvanbladel/aurelia-auth/issues/119#issuecomment-214770169","issue_url":"https://api.github.com/repos/paulvanbladel/aurelia-auth/issues/119","id":214770169,"user":{"login":"dmason511","id":5023447,"avatar_url":"https://avatars.githubusercontent.com/u/5023447?v=3","gravatar_id":"","url":"https://api.github.com/users/dmason511","html_url":"https://github.com/dmason511","followers_url":"https://api.github.com/users/dmason511/followers","following_url":"https://api.github.com/users/dmason511/following{/other_user}","gists_url":"https://api.github.com/users/dmason511/gists{/gist_id}","starred_url":"https://api.github.com/users/dmason511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmason511/subscriptions","organizations_url":"https://api.github.com/users/dmason511/orgs","repos_url":"https://api.github.com/users/dmason511/repos","events_url":"https://api.github.com/users/dmason511/events{/privacy}","received_events_url":"https://api.github.com/users/dmason511/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T14:48:55Z","updated_at":"2016-04-26T14:48:55Z","body":"Found it.   tokenName : 'access_token', instead of 'id_token' in authConfig file."}}