{"action":"created","issue":{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/80","labels_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/80/comments","events_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/80/events","html_url":"https://github.com/MoodCat/MoodCat.me-Frontend/issues/80","id":89517420,"number":80,"title":"Soundcloud Login fails in production","user":{"login":"JWGmeligMeyling","id":3469492,"avatar_url":"https://avatars.githubusercontent.com/u/3469492?v=3","gravatar_id":"","url":"https://api.github.com/users/JWGmeligMeyling","html_url":"https://github.com/JWGmeligMeyling","followers_url":"https://api.github.com/users/JWGmeligMeyling/followers","following_url":"https://api.github.com/users/JWGmeligMeyling/following{/other_user}","gists_url":"https://api.github.com/users/JWGmeligMeyling/gists{/gist_id}","starred_url":"https://api.github.com/users/JWGmeligMeyling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JWGmeligMeyling/subscriptions","organizations_url":"https://api.github.com/users/JWGmeligMeyling/orgs","repos_url":"https://api.github.com/users/JWGmeligMeyling/repos","events_url":"https://api.github.com/users/JWGmeligMeyling/events{/privacy}","received_events_url":"https://api.github.com/users/JWGmeligMeyling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/milestones/9","html_url":"https://github.com/MoodCat/MoodCat.me-Frontend/milestones/Sprint%208","labels_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/milestones/9/labels","id":1161807,"number":9,"title":"Sprint 8","description":"Round the project.","creator":{"login":"Azkle","id":5946438,"avatar_url":"https://avatars.githubusercontent.com/u/5946438?v=3","gravatar_id":"","url":"https://api.github.com/users/Azkle","html_url":"https://github.com/Azkle","followers_url":"https://api.github.com/users/Azkle/followers","following_url":"https://api.github.com/users/Azkle/following{/other_user}","gists_url":"https://api.github.com/users/Azkle/gists{/gist_id}","starred_url":"https://api.github.com/users/Azkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azkle/subscriptions","organizations_url":"https://api.github.com/users/Azkle/orgs","repos_url":"https://api.github.com/users/Azkle/repos","events_url":"https://api.github.com/users/Azkle/events{/privacy}","received_events_url":"https://api.github.com/users/Azkle/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":9,"state":"open","created_at":"2015-06-12T10:48:44Z","updated_at":"2015-06-19T18:29:27Z","due_on":"2015-06-18T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-19T09:35:27Z","updated_at":"2015-06-19T20:39:47Z","closed_at":null,"body":"Using the production Soundcloud API ID and host name (http://moodcat.me) the authentication fails. This is because SC.accessToken() seems to return `null` after logging in to SoundCloud's services.\r\n\r\nSoundCloud API usage in https://github.com/MoodCat/MoodCat.me-Frontend/blob/master/app/scripts/services/audio/soundCloudService.js : \r\n```js\r\n      SC.initialize({\r\n        client_id: soundCloudKey,\r\n        redirect_uri: window.location.origin,\r\n        access_token: $cookieStore.get('scAuth'),\r\n        scope: 'non-expiring'\r\n      });\r\n\r\n      this.loginUsingSoundcloud = function loginUsingSoundcloud() {\r\n        var deferred = $q.defer();\r\n\r\n        SC.connect(function() {\r\n          deferred.resolve();\r\n          var accessToken = SC.accessToken();\r\n          $cookieStore.put('scAuth', accessToken);\r\n          $rootScope.loggedIn = true;\r\n          $rootScope.$broadcast('soundcloud-login');\r\n        });\r\n\r\n        return deferred.promise;\r\n      };\r\n\r\n```\r\n\r\nThis is related to https://github.com/soundcloud/soundcloud-javascript/issues/19\r\nA Stackoverflow question exists on http://stackoverflow.com/questions/30767228/soundcloud-sdk-not-receiving-token-callback-in-production-environments-in-safar"},"comment":{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/comments/113635355","html_url":"https://github.com/MoodCat/MoodCat.me-Frontend/issues/80#issuecomment-113635355","issue_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/80","id":113635355,"user":{"login":"JeremybellEU","id":5948271,"avatar_url":"https://avatars.githubusercontent.com/u/5948271?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremybellEU","html_url":"https://github.com/JeremybellEU","followers_url":"https://api.github.com/users/JeremybellEU/followers","following_url":"https://api.github.com/users/JeremybellEU/following{/other_user}","gists_url":"https://api.github.com/users/JeremybellEU/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremybellEU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremybellEU/subscriptions","organizations_url":"https://api.github.com/users/JeremybellEU/orgs","repos_url":"https://api.github.com/users/JeremybellEU/repos","events_url":"https://api.github.com/users/JeremybellEU/events{/privacy}","received_events_url":"https://api.github.com/users/JeremybellEU/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T20:39:47Z","updated_at":"2015-06-19T20:39:47Z","body":"This has been fixed by #82."}}