{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/279","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/279/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/279/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-objc/issues/279","id":62241014,"number":279,"title":"Expose `requestCodeByResource:` in public header","user":{"login":"johnboiles","id":218876,"avatar_url":"https://avatars.githubusercontent.com/u/218876?v=3","gravatar_id":"","url":"https://api.github.com/users/johnboiles","html_url":"https://github.com/johnboiles","followers_url":"https://api.github.com/users/johnboiles/followers","following_url":"https://api.github.com/users/johnboiles/following{/other_user}","gists_url":"https://api.github.com/users/johnboiles/gists{/gist_id}","starred_url":"https://api.github.com/users/johnboiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnboiles/subscriptions","organizations_url":"https://api.github.com/users/johnboiles/orgs","repos_url":"https://api.github.com/users/johnboiles/repos","events_url":"https://api.github.com/users/johnboiles/events{/privacy}","received_events_url":"https://api.github.com/users/johnboiles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-16T23:59:17Z","updated_at":"2015-05-21T23:11:36Z","closed_at":"2015-05-21T23:11:36Z","body":"According to [this document](https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx) the client application should retrieve an OAuth2 code, then pass it back to the server, then the server should resolve that code into an access token. This isn't possible with the current version of this library because the method that retrieves the code (`queryStringFromResource:`) is not exposed in the public header.\r\n\r\nThere should be a way to get an OAuth2 code on the device, for resolution on a remote server.\r\n\r\nLet me know if there's a better way to do this."},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/comments/104446166","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-objc/issues/279#issuecomment-104446166","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/279","id":104446166,"user":{"login":"kpanwar","id":5713915,"avatar_url":"https://avatars.githubusercontent.com/u/5713915?v=3","gravatar_id":"","url":"https://api.github.com/users/kpanwar","html_url":"https://github.com/kpanwar","followers_url":"https://api.github.com/users/kpanwar/followers","following_url":"https://api.github.com/users/kpanwar/following{/other_user}","gists_url":"https://api.github.com/users/kpanwar/gists{/gist_id}","starred_url":"https://api.github.com/users/kpanwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpanwar/subscriptions","organizations_url":"https://api.github.com/users/kpanwar/orgs","repos_url":"https://api.github.com/users/kpanwar/repos","events_url":"https://api.github.com/users/kpanwar/events{/privacy}","received_events_url":"https://api.github.com/users/kpanwar/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T23:11:36Z","updated_at":"2015-05-21T23:11:36Z","body":"yes."}}