{"action":"created","comment":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/comments/57743430","id":57743430,"diff_hunk":"@@ -74,6 +74,13 @@ - (id)init {\n             }];\n         }\n         \n+        //Load from info.plist\n+        if([[NSBundle mainBundle] objectForInfoDictionaryKey:@\"SFDCOAuthLoginHost\"]) {","path":"libs/SalesforceSDKCore/SalesforceSDKCore/Classes/Login/LoginHost/SFSDKLoginHostStorage.m","position":5,"original_position":5,"commit_id":"854c83b7620332b08a63e23fbb454e3330305a5d","original_commit_id":"854c83b7620332b08a63e23fbb454e3330305a5d","user":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"body":"Currently, we put all the login hosts in a NSMutableArray. Once they are added in there we pick the login host at the zeroth index to be the default host(Technically we can choose and pick any host at any index, but the default is zeroth index). Thats the reason why the MDM logic is first, then the info.plist. I do agree that once MDM is enforced we no longer need the other hosts in the NSMutable Array.","created_at":"2016-03-29T15:27:49Z","updated_at":"2016-03-29T15:27:49Z","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/pull/1466#discussion_r57743430","pull_request_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466","_links":{"self":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/comments/57743430"},"html":{"href":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/pull/1466#discussion_r57743430"},"pull_request":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466"}}},"pull_request":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466","id":64342736,"html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/pull/1466","diff_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/pull/1466.diff","patch_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/pull/1466.patch","issue_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1466","number":1466,"state":"open","locked":false,"title":"Modifications for login screen","user":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-28T16:52:13Z","updated_at":"2016-03-29T15:27:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f6cd00f69ddb609d1fd1b22f6fe894d05ed7177","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466/commits","review_comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466/comments","review_comment_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1466/comments","statuses_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/statuses/854c83b7620332b08a63e23fbb454e3330305a5d","head":{"label":"kchitalia:unstable","ref":"unstable","sha":"854c83b7620332b08a63e23fbb454e3330305a5d","user":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"repo":{"id":39398754,"name":"SalesforceMobileSDK-iOS","full_name":"kchitalia/SalesforceMobileSDK-iOS","owner":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kchitalia/SalesforceMobileSDK-iOS","description":"Force.com mobile SDK for iOS applications","fork":true,"url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS","forks_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/forks","keys_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/teams","hooks_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/hooks","issue_events_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/events","assignees_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/tags","blobs_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/languages","stargazers_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/stargazers","contributors_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/contributors","subscribers_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/subscribers","subscription_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/subscription","commits_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/merges","archive_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/downloads","issues_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/labels{/name}","releases_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-iOS/deployments","created_at":"2015-07-20T17:41:40Z","updated_at":"2016-02-19T23:44:15Z","pushed_at":"2016-03-28T16:50:56Z","git_url":"git://github.com/kchitalia/SalesforceMobileSDK-iOS.git","ssh_url":"git@github.com:kchitalia/SalesforceMobileSDK-iOS.git","clone_url":"https://github.com/kchitalia/SalesforceMobileSDK-iOS.git","svn_url":"https://github.com/kchitalia/SalesforceMobileSDK-iOS","homepage":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS","size":267036,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"forcedotcom:unstable","ref":"unstable","sha":"4466534f3a24a98a4235d9c8bc6555a9148a0494","user":{"login":"forcedotcom","id":464563,"avatar_url":"https://avatars.githubusercontent.com/u/464563?v=3","gravatar_id":"","url":"https://api.github.com/users/forcedotcom","html_url":"https://github.com/forcedotcom","followers_url":"https://api.github.com/users/forcedotcom/followers","following_url":"https://api.github.com/users/forcedotcom/following{/other_user}","gists_url":"https://api.github.com/users/forcedotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/forcedotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcedotcom/subscriptions","organizations_url":"https://api.github.com/users/forcedotcom/orgs","repos_url":"https://api.github.com/users/forcedotcom/repos","events_url":"https://api.github.com/users/forcedotcom/events{/privacy}","received_events_url":"https://api.github.com/users/forcedotcom/received_events","type":"Organization","site_admin":false},"repo":{"id":2338086,"name":"SalesforceMobileSDK-iOS","full_name":"forcedotcom/SalesforceMobileSDK-iOS","owner":{"login":"forcedotcom","id":464563,"avatar_url":"https://avatars.githubusercontent.com/u/464563?v=3","gravatar_id":"","url":"https://api.github.com/users/forcedotcom","html_url":"https://github.com/forcedotcom","followers_url":"https://api.github.com/users/forcedotcom/followers","following_url":"https://api.github.com/users/forcedotcom/following{/other_user}","gists_url":"https://api.github.com/users/forcedotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/forcedotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcedotcom/subscriptions","organizations_url":"https://api.github.com/users/forcedotcom/orgs","repos_url":"https://api.github.com/users/forcedotcom/repos","events_url":"https://api.github.com/users/forcedotcom/events{/privacy}","received_events_url":"https://api.github.com/users/forcedotcom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS","description":"Force.com mobile SDK for iOS applications","fork":false,"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS","forks_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/forks","keys_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/teams","hooks_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/hooks","issue_events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/events","assignees_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/tags","blobs_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/languages","stargazers_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/stargazers","contributors_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/contributors","subscribers_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/subscribers","subscription_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/subscription","commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/merges","archive_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/downloads","issues_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/labels{/name}","releases_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/deployments","created_at":"2011-09-06T23:13:57Z","updated_at":"2016-03-08T11:28:38Z","pushed_at":"2016-03-28T20:10:59Z","git_url":"git://github.com/forcedotcom/SalesforceMobileSDK-iOS.git","ssh_url":"git@github.com:forcedotcom/SalesforceMobileSDK-iOS.git","clone_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git","svn_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS","homepage":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS","size":294992,"stargazers_count":315,"watchers_count":315,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":232,"mirror_url":null,"open_issues_count":23,"forks":232,"open_issues":23,"watchers":315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466"},"html":{"href":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/pull/1466"},"issue":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1466"},"comments":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1466/comments"},"review_comments":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466/comments"},"review_comment":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/pulls/1466/commits"},"statuses":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/statuses/854c83b7620332b08a63e23fbb454e3330305a5d"}}}}