{"action":"closed","issue":{"url":"https://api.github.com/repos/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter/issues/16","repository_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter","labels_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter/issues/16/comments","events_url":"https://api.github.com/repos/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter/issues/16/events","html_url":"https://github.com/OneDrive/onedrive-sdk-dotnet-msa-auth-adapter/issues/16","id":179863725,"number":16,"title":"I keep getting invalid request","user":{"login":"shomarisharpe","id":11097376,"avatar_url":"https://avatars.githubusercontent.com/u/11097376?v=3","gravatar_id":"","url":"https://api.github.com/users/shomarisharpe","html_url":"https://github.com/shomarisharpe","followers_url":"https://api.github.com/users/shomarisharpe/followers","following_url":"https://api.github.com/users/shomarisharpe/following{/other_user}","gists_url":"https://api.github.com/users/shomarisharpe/gists{/gist_id}","starred_url":"https://api.github.com/users/shomarisharpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shomarisharpe/subscriptions","organizations_url":"https://api.github.com/users/shomarisharpe/orgs","repos_url":"https://api.github.com/users/shomarisharpe/repos","events_url":"https://api.github.com/users/shomarisharpe/events{/privacy}","received_events_url":"https://api.github.com/users/shomarisharpe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T19:22:30Z","updated_at":"2016-09-28T19:43:45Z","closed_at":"2016-09-28T19:43:45Z","body":"The following code produces an \"Invalid Request\" after authentication to onedrive. What could be the problem?\r\n\r\n\r\nDim clientid = \"blabla\"\r\nDim clientsecret = \"blabla\"\r\nDim scopes() As String = {\"User.Read\", \"Files.ReadWrite\", \"offline_access\"}\r\n\r\nDim auth As New Microsoft.OneDrive.Sdk.Authentication.MsaAuthenticationProvider(clientid, clientsecret, \"https://localhost\", scopes, New CredentialCache(), New CredentialVault(clientId))\r\n\r\nawait auth.RestoreMostRecentFromCacheOrAuthenticateUserAsync()\r\nclient = New OneDriveClient(auth)\r\n\r\nDim items = await client.Drive.items.Request().GetAsync()\r\nFor Each I In items\r\n\tDebug.WriteLine(I.Name)\r\nNext"}}
{"actor":{"display_login":"shomarisharpe"}}