{"action":"closed","issue":{"url":"https://api.github.com/repos/sahat/satellizer/issues/301","labels_url":"https://api.github.com/repos/sahat/satellizer/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/sahat/satellizer/issues/301/comments","events_url":"https://api.github.com/repos/sahat/satellizer/issues/301/events","html_url":"https://github.com/sahat/satellizer/issues/301","id":59327684,"number":301,"title":"What's the difference between url and redirectUri?","user":{"login":"hanfeisun","id":922081,"avatar_url":"https://avatars.githubusercontent.com/u/922081?v=3","gravatar_id":"","url":"https://api.github.com/users/hanfeisun","html_url":"https://github.com/hanfeisun","followers_url":"https://api.github.com/users/hanfeisun/followers","following_url":"https://api.github.com/users/hanfeisun/following{/other_user}","gists_url":"https://api.github.com/users/hanfeisun/gists{/gist_id}","starred_url":"https://api.github.com/users/hanfeisun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanfeisun/subscriptions","organizations_url":"https://api.github.com/users/hanfeisun/orgs","repos_url":"https://api.github.com/users/hanfeisun/repos","events_url":"https://api.github.com/users/hanfeisun/events{/privacy}","received_events_url":"https://api.github.com/users/hanfeisun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T06:03:05Z","updated_at":"2015-03-02T02:56:22Z","closed_at":"2015-03-02T02:56:22Z","body":"My front-end and back-end is separated and deployed on different domains... \r\n\r\nI was wondering whether I should write front-end Url or back-end Url in `url` and `redirectUri` attributes.. And what is the difference between url and redirectUri?\r\n\r\n\r\n\r\n    # I write back-end Url in url and front-end Url in redirectUri currently, but it didn't work.\r\n    $authProvider.facebook\r\n        clientId: '123'\r\n        url: 'http://my-backend-app.com/authenticate/facebook'\r\n        authorizationEndpoint: 'https://www.facebook.com/dialog/oauth'\r\n        redirectUri: window.location.origin || window.location.protocol + '//' + window.location.host + '/'\r\n        scope: 'email'\r\n        scopeDelimiter: ','\r\n        requiredUrlParams: ['display', 'scope']\r\n        display: 'popup'\r\n        type: '2.0'\r\n        popupOptions: { width: 481, height: 269 }\r\n"}}