{"action":"created","issue":{"url":"https://api.github.com/repos/sahat/satellizer/issues/792","repository_url":"https://api.github.com/repos/sahat/satellizer","labels_url":"https://api.github.com/repos/sahat/satellizer/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/sahat/satellizer/issues/792/comments","events_url":"https://api.github.com/repos/sahat/satellizer/issues/792/events","html_url":"https://github.com/sahat/satellizer/issues/792","id":147169395,"number":792,"title":"ignores server responses with `access_token` ","user":{"login":"indieforger","id":10958238,"avatar_url":"https://avatars.githubusercontent.com/u/10958238?v=3","gravatar_id":"","url":"https://api.github.com/users/indieforger","html_url":"https://github.com/indieforger","followers_url":"https://api.github.com/users/indieforger/followers","following_url":"https://api.github.com/users/indieforger/following{/other_user}","gists_url":"https://api.github.com/users/indieforger/gists{/gist_id}","starred_url":"https://api.github.com/users/indieforger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indieforger/subscriptions","organizations_url":"https://api.github.com/users/indieforger/orgs","repos_url":"https://api.github.com/users/indieforger/repos","events_url":"https://api.github.com/users/indieforger/events{/privacy}","received_events_url":"https://api.github.com/users/indieforger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-09T22:25:15Z","updated_at":"2016-04-09T22:53:30Z","closed_at":"2016-04-09T22:53:30Z","body":"Everything appears to be in order when server returns\r\n```\r\n{\r\n  token: 'xxxxxxxxxxxxxxxxxxxxxxx'\r\n}\r\n```\r\nHowever when response is:\r\n```\r\n{\r\n  access_token: 'xxxxxxxxxxxxxxxx'\r\n}\r\n```\r\nsatellizer totally ignores it with angular warning message:\r\n`Expecting a token named \"'token`\r\n\r\nModifying $auth config properties doesn't help either."},"comment":{"url":"https://api.github.com/repos/sahat/satellizer/issues/comments/207867509","html_url":"https://github.com/sahat/satellizer/issues/792#issuecomment-207867509","issue_url":"https://api.github.com/repos/sahat/satellizer/issues/792","id":207867509,"user":{"login":"indieforger","id":10958238,"avatar_url":"https://avatars.githubusercontent.com/u/10958238?v=3","gravatar_id":"","url":"https://api.github.com/users/indieforger","html_url":"https://github.com/indieforger","followers_url":"https://api.github.com/users/indieforger/followers","following_url":"https://api.github.com/users/indieforger/following{/other_user}","gists_url":"https://api.github.com/users/indieforger/gists{/gist_id}","starred_url":"https://api.github.com/users/indieforger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indieforger/subscriptions","organizations_url":"https://api.github.com/users/indieforger/orgs","repos_url":"https://api.github.com/users/indieforger/repos","events_url":"https://api.github.com/users/indieforger/events{/privacy}","received_events_url":"https://api.github.com/users/indieforger/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T22:53:30Z","updated_at":"2016-04-09T22:53:30Z","body":"Ahh! Problem doesn't exist! My scenario can be manage with configs.\r\nFor authentication responses coming from the backed that look like this\r\n{\r\n  access_token: 'xxxxxxxxxxxxxxxx'\r\n}\r\n\r\nI can just configure application with\r\n```\r\nangular.module('myApp').config(function($authProvider) {\r\n  $authProvider.tokenPrefix = '';\r\n  $authProvider.tokenName = 'access_token';\r\n});\r\n```\r\n\r\nJOB DONE!\r\n\r\n\r\nclosing the issue!"}}