{"action":"created","issue":{"url":"https://api.github.com/repos/p2/OAuth2/issues/96","repository_url":"https://api.github.com/repos/p2/OAuth2","labels_url":"https://api.github.com/repos/p2/OAuth2/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/p2/OAuth2/issues/96/comments","events_url":"https://api.github.com/repos/p2/OAuth2/issues/96/events","html_url":"https://github.com/p2/OAuth2/issues/96","id":139799872,"number":96,"title":"Issues with Bitbucket","user":{"login":"matthewcheok","id":4529964,"avatar_url":"https://avatars.githubusercontent.com/u/4529964?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewcheok","html_url":"https://github.com/matthewcheok","followers_url":"https://api.github.com/users/matthewcheok/followers","following_url":"https://api.github.com/users/matthewcheok/following{/other_user}","gists_url":"https://api.github.com/users/matthewcheok/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewcheok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewcheok/subscriptions","organizations_url":"https://api.github.com/users/matthewcheok/orgs","repos_url":"https://api.github.com/users/matthewcheok/repos","events_url":"https://api.github.com/users/matthewcheok/events{/privacy}","received_events_url":"https://api.github.com/users/matthewcheok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/p2/OAuth2/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/p2/OAuth2/labels/site-specifics","name":"site-specifics","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-10T06:33:39Z","updated_at":"2016-03-16T15:19:13Z","closed_at":null,"body":"I'm getting errors with Bitbucket with the following configuration:\r\n\r\n```\r\nOAuth2CodeGrant(settings: [\r\n    \"client_id\": \"...\",\r\n    \"client_secret\": \"...\",\r\n    \"authorize_uri\": \"https://bitbucket.org/site/oauth2/authorize\",\r\n    \"token_uri\": \"https://bitbucket.org/site/oauth2/access_token\",\r\n    \"scope\": \"\",\r\n    \"redirect_uris\": [\"...\"],\r\n    \"title\": \"Bitbucket\",\r\n    ])\r\n```\r\n\r\nThe error as follows:\r\n```\r\n{\r\n  \"error_description\": \"Requests must be authenticated using OAuth client credentials\", \r\n  \"error\": \"unauthorized_client\"\r\n}\r\n```\r\n\r\nAny ideas how I can fix this?"},"comment":{"url":"https://api.github.com/repos/p2/OAuth2/issues/comments/197378862","html_url":"https://github.com/p2/OAuth2/issues/96#issuecomment-197378862","issue_url":"https://api.github.com/repos/p2/OAuth2/issues/96","id":197378862,"user":{"login":"matthewcheok","id":4529964,"avatar_url":"https://avatars.githubusercontent.com/u/4529964?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewcheok","html_url":"https://github.com/matthewcheok","followers_url":"https://api.github.com/users/matthewcheok/followers","following_url":"https://api.github.com/users/matthewcheok/following{/other_user}","gists_url":"https://api.github.com/users/matthewcheok/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewcheok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewcheok/subscriptions","organizations_url":"https://api.github.com/users/matthewcheok/orgs","repos_url":"https://api.github.com/users/matthewcheok/repos","events_url":"https://api.github.com/users/matthewcheok/events{/privacy}","received_events_url":"https://api.github.com/users/matthewcheok/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T15:19:13Z","updated_at":"2016-03-16T15:19:13Z","body":"Seems I don't have permission to view that ticket. Thanks for following up with this!"}}