{"action":"created","issue":{"url":"https://api.github.com/repos/fkalis/bash-onedrive-upload/issues/28","repository_url":"https://api.github.com/repos/fkalis/bash-onedrive-upload","labels_url":"https://api.github.com/repos/fkalis/bash-onedrive-upload/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/fkalis/bash-onedrive-upload/issues/28/comments","events_url":"https://api.github.com/repos/fkalis/bash-onedrive-upload/issues/28/events","html_url":"https://github.com/fkalis/bash-onedrive-upload/issues/28","id":170853040,"number":28,"title":"Does this script still work","user":{"login":"nilukk","id":20989198,"avatar_url":"https://avatars.githubusercontent.com/u/20989198?v=3","gravatar_id":"","url":"https://api.github.com/users/nilukk","html_url":"https://github.com/nilukk","followers_url":"https://api.github.com/users/nilukk/followers","following_url":"https://api.github.com/users/nilukk/following{/other_user}","gists_url":"https://api.github.com/users/nilukk/gists{/gist_id}","starred_url":"https://api.github.com/users/nilukk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilukk/subscriptions","organizations_url":"https://api.github.com/users/nilukk/orgs","repos_url":"https://api.github.com/users/nilukk/repos","events_url":"https://api.github.com/users/nilukk/events{/privacy}","received_events_url":"https://api.github.com/users/nilukk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T11:37:03Z","updated_at":"2016-08-12T17:40:25Z","closed_at":null,"body":"Hi,\r\n\r\nTo test this script out I created myself a new OneDrive account.\r\n\r\nWhen creating an application (at https://account.live.com/developers/applications) I don't see how to 'switch the API Setting \"Mobile or desktop client app\" to \"yes\"'. I can however add a platform and I've added a 'Mobile application' (the other option is 'Web') and this automatically shows a Redirect URI which is greyed out and unchangeable: urn:ietf:wg:oauth:2.0:oob\r\n\r\nWhen running onedrive-authorize and pasting the shown URL into a browser I get the response:\r\n\r\nhttps://login.live.com/oauth20_desktop.srf?error=invalid_request&error_description=The%20provided%20value%20for%20the%20input%20parameter%20%27redirect_uri%27%20is%20not%20valid.%20The%20client%20application%20must%20be%20marked%20as%20%27mobile%27%2c%20or%20the%20value%20must%20be%20an%20absolute%20URL%20which%20matches%20the%20registered%20redirect%20URI.&lc=2057\r\n\r\nSince this URL itself seems to be an error message I changed the URL to remove the portion from '&redirect_uri=' onwards and that errors with:\r\nhttps://login.live.com/err.srf?lc=2057#error=invalid_request&error_description=The+provided+request+must+include+a+%27redirect_uri%27+input+parameter.\r\n\r\nI then changed the URL so the redirect URL was the one shown (by default) against my application and there is no response (just see a blank page with the original URL)\r\n\r\nAny ideas as to how to resolve. I'm also interested in uploading files from Linux to SharePoint Online (part of Office365) so any idea whether the same mechanism could be used for that.\r\n\r\nThanks, Nik"},"comment":{"url":"https://api.github.com/repos/fkalis/bash-onedrive-upload/issues/comments/239511867","html_url":"https://github.com/fkalis/bash-onedrive-upload/issues/28#issuecomment-239511867","issue_url":"https://api.github.com/repos/fkalis/bash-onedrive-upload/issues/28","id":239511867,"user":{"login":"fkalis","id":6001167,"avatar_url":"https://avatars.githubusercontent.com/u/6001167?v=3","gravatar_id":"","url":"https://api.github.com/users/fkalis","html_url":"https://github.com/fkalis","followers_url":"https://api.github.com/users/fkalis/followers","following_url":"https://api.github.com/users/fkalis/following{/other_user}","gists_url":"https://api.github.com/users/fkalis/gists{/gist_id}","starred_url":"https://api.github.com/users/fkalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkalis/subscriptions","organizations_url":"https://api.github.com/users/fkalis/orgs","repos_url":"https://api.github.com/users/fkalis/repos","events_url":"https://api.github.com/users/fkalis/events{/privacy}","received_events_url":"https://api.github.com/users/fkalis/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T17:40:25Z","updated_at":"2016-08-12T17:40:25Z","body":"Ah, now I see what I have done differently:\r\n\r\n![apps](https://cloud.githubusercontent.com/assets/6001167/17631397/3837360c-60c4-11e6-8cc6-c12301e47b08.png)\r\n\r\nI have created my app as a Live SDK application (second Add button).\r\n\r\nWhen I create a \"normal\" app (first Add button), I can reproduce your problem. Thank you for the hint. I will try to make the authorization process work for \"normal\" apps, too.\r\n"}}
{"actor":{"display_login":"fkalis"}}