{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/1469","labels_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/1469/labels{/name}","comments_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/1469/comments","events_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/1469/events","html_url":"https://github.com/angular-fullstack/generator-angular-fullstack/issues/1469","id":121038130,"number":1469,"title":"Authentication fails on IE9 in the latest version","user":{"login":"ichbinedgar","id":5431012,"avatar_url":"https://avatars.githubusercontent.com/u/5431012?v=3","gravatar_id":"","url":"https://api.github.com/users/ichbinedgar","html_url":"https://github.com/ichbinedgar","followers_url":"https://api.github.com/users/ichbinedgar/followers","following_url":"https://api.github.com/users/ichbinedgar/following{/other_user}","gists_url":"https://api.github.com/users/ichbinedgar/gists{/gist_id}","starred_url":"https://api.github.com/users/ichbinedgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichbinedgar/subscriptions","organizations_url":"https://api.github.com/users/ichbinedgar/orgs","repos_url":"https://api.github.com/users/ichbinedgar/repos","events_url":"https://api.github.com/users/ichbinedgar/events{/privacy}","received_events_url":"https://api.github.com/users/ichbinedgar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T16:00:19Z","updated_at":"2015-12-08T16:00:19Z","closed_at":null,"body":"Hi,\r\nI've updated my generator to the latest version, and the authentication was not working on IE9.\r\nI found the issue in the server/auth/auth.service.js file in this line:\r\n```javascript\r\n        req.headers.authorization = 'Bearer ' + req.query.access_token;\r\n```\r\nreq.query.access_token is undefined, so I make a workaround like this:\r\n\r\n```javascript\r\n        if(req.headers['user-agent'].indexOf(\"MSIE\") >= 0){\r\n          var aux = req.headers.cookie.split(';');\r\n          var token =  aux[aux.length-1].trim();\r\n          token= token.replace('token=','');\r\n          req.headers.authorization = 'Bearer ' + token;\r\n        }\r\n```\r\nIt can be useful for other people."}}