{"action":"created","issue":{"url":"https://api.github.com/repos/golang/oauth2/issues/185","repository_url":"https://api.github.com/repos/golang/oauth2","labels_url":"https://api.github.com/repos/golang/oauth2/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/golang/oauth2/issues/185/comments","events_url":"https://api.github.com/repos/golang/oauth2/issues/185/events","html_url":"https://github.com/golang/oauth2/issues/185","id":156690433,"number":185,"title":"ConfigFromJSON cred struct outdated?","user":{"login":"shyamsalimkumar","id":1527732,"avatar_url":"https://avatars.githubusercontent.com/u/1527732?v=3","gravatar_id":"","url":"https://api.github.com/users/shyamsalimkumar","html_url":"https://github.com/shyamsalimkumar","followers_url":"https://api.github.com/users/shyamsalimkumar/followers","following_url":"https://api.github.com/users/shyamsalimkumar/following{/other_user}","gists_url":"https://api.github.com/users/shyamsalimkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/shyamsalimkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyamsalimkumar/subscriptions","organizations_url":"https://api.github.com/users/shyamsalimkumar/orgs","repos_url":"https://api.github.com/users/shyamsalimkumar/repos","events_url":"https://api.github.com/users/shyamsalimkumar/events{/privacy}","received_events_url":"https://api.github.com/users/shyamsalimkumar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-05-25T08:23:41Z","updated_at":"2016-09-07T11:25:13Z","closed_at":"2016-09-07T11:25:13Z","body":"> What version of Go are you using (go version)?\r\n> What operating system and processor architecture are you using?\r\n\r\n```bash\r\n$ go version\r\ngo version go1.5.1 linux/amd64\r\n```\r\n\r\n> What did you do?\r\n\r\nCopy pasted the [example code](https://developers.google.com/sheets/quickstart/go#step_3_set_up_the_sample) and ran it.\r\n\r\n> What did you expect to see?\r\n\r\nData from the spreadsheet that the code is supposed to try to read.\r\n\r\n> What did you see instead?\r\n\r\n```bash\r\n$ go run main.go \r\n\r\n2016/05/25 13:16:42 Unable to parse client secret file to config: oauth2/google: no credentials found\r\nexit status 1\r\n```\r\n\r\nI noticed that the client secret file downloaded from the Google App console doesn't correspond to [this structure](https://github.com/golang/oauth2/blob/master/google/google.go#L45-54) instead it looks more like \r\n\r\n```json\r\n{\r\n  \"type\": \"\",\r\n  \"project_id\": \"\",\r\n  \"private_key_id\": \"\",\r\n  \"private_key\": \"\",\r\n  \"client_email\": \"\",\r\n  \"client_id\": \"\",\r\n  \"auth_uri\": \"\",\r\n  \"token_uri\": \"\",\r\n  \"auth_provider_x509_cert_url\": \"\",\r\n  \"client_x509_cert_url\": \"\"\r\n}\r\n```\r\nAbove is the structure of the JSON file I got when I selected that this would be running using a cron/daemon."},"comment":{"url":"https://api.github.com/repos/golang/oauth2/issues/comments/245251820","html_url":"https://github.com/golang/oauth2/issues/185#issuecomment-245251820","issue_url":"https://api.github.com/repos/golang/oauth2/issues/185","id":245251820,"user":{"login":"shyamsalimkumar","id":1527732,"avatar_url":"https://avatars.githubusercontent.com/u/1527732?v=3","gravatar_id":"","url":"https://api.github.com/users/shyamsalimkumar","html_url":"https://github.com/shyamsalimkumar","followers_url":"https://api.github.com/users/shyamsalimkumar/followers","following_url":"https://api.github.com/users/shyamsalimkumar/following{/other_user}","gists_url":"https://api.github.com/users/shyamsalimkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/shyamsalimkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyamsalimkumar/subscriptions","organizations_url":"https://api.github.com/users/shyamsalimkumar/orgs","repos_url":"https://api.github.com/users/shyamsalimkumar/repos","events_url":"https://api.github.com/users/shyamsalimkumar/events{/privacy}","received_events_url":"https://api.github.com/users/shyamsalimkumar/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T11:25:13Z","updated_at":"2016-09-07T11:25:13Z","body":"Weird... Got a different structure from before and it worked. :smile: \r\nThe current `client_secret.json` structure is as follows.\r\n```json\r\n{\r\n  \"installed\": {\r\n    \"client_id\": \"\",\r\n    \"project_id\": \"\",\r\n    \"auth_uri\": \"\",\r\n    \"token_uri\": \"\",\r\n    \"auth_provider_x509_cert_url\": \"\",\r\n    \"client_secret\": \"\",\r\n    \"redirect_uris\": []\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"shyamsalimkumar"}}