{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/5743","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/5743/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/5743/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/5743/events","html_url":"https://github.com/mautic/mautic/issues/5743","id":299905932,"number":5743,"title":"OAuth grant type client_credentials","user":{"login":"micheljung","id":1864183,"avatar_url":"https://avatars2.githubusercontent.com/u/1864183?v=4","gravatar_id":"","url":"https://api.github.com/users/micheljung","html_url":"https://github.com/micheljung","followers_url":"https://api.github.com/users/micheljung/followers","following_url":"https://api.github.com/users/micheljung/following{/other_user}","gists_url":"https://api.github.com/users/micheljung/gists{/gist_id}","starred_url":"https://api.github.com/users/micheljung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheljung/subscriptions","organizations_url":"https://api.github.com/users/micheljung/orgs","repos_url":"https://api.github.com/users/micheljung/repos","events_url":"https://api.github.com/users/micheljung/events{/privacy}","received_events_url":"https://api.github.com/users/micheljung/received_events","type":"User","site_admin":false},"labels":[{"id":154414465,"url":"https://api.github.com/repos/mautic/mautic/labels/Feature%20Request","name":"Feature Request","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-24T03:09:00Z","updated_at":"2018-02-24T03:09:00Z","closed_at":null,"author_association":"NONE","body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | \r\n| Feature request? | Y\r\n| Enhancement? | \r\n\r\n## Description:\r\nI'm not sure if the grant type `client_credentials` is supported or not. I do find code [here](https://github.com/mautic/mautic/blob/cd544c629d10ccf348ce7ed3867ee286897f1c75/app/bundles/PluginBundle/Integration/AbstractIntegration.php#L1180) but when I do this via Postman:\r\n\r\n```\r\nPOST /oauth/v2/token HTTP/1.1\r\nHost: example.com\r\nAuthorization: Basic <some base64>\r\nCache-Control: no-cache\r\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"grant_type\"\r\n\r\nclient_credentials\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--\r\n```\r\n\r\nI get:\r\n```\r\n{\r\n    \"errors\": [\r\n        {\r\n            \"message\": \"The grant type is unauthorized for this client_id\",\r\n            \"code\": 400,\r\n            \"type\": \"unauthorized_client\"\r\n        }\r\n    ],\r\n    \"error\": \"unauthorized_client\",\r\n    \"error_description\": \"The grant type is unauthorized for this client_id (`error` and `error_description` are deprecated as of 2.6.0 and will be removed in 3.0. Use the `errors` array instead.)\"\r\n}\r\n```\r\n\r\nI don't see any option in the API Credentials page, or anywhere, where I can allow a client to use client_credentials.\r\n\r\nSo is it not yet supported or how do I configure it properly? Couldn't find anything in the docs, either."},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/368194104","html_url":"https://github.com/mautic/mautic/issues/5743#issuecomment-368194104","issue_url":"https://api.github.com/repos/mautic/mautic/issues/5743","id":368194104,"user":{"login":"mautibot","id":9725490,"avatar_url":"https://avatars2.githubusercontent.com/u/9725490?v=4","gravatar_id":"","url":"https://api.github.com/users/mautibot","html_url":"https://github.com/mautibot","followers_url":"https://api.github.com/users/mautibot/followers","following_url":"https://api.github.com/users/mautibot/following{/other_user}","gists_url":"https://api.github.com/users/mautibot/gists{/gist_id}","starred_url":"https://api.github.com/users/mautibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mautibot/subscriptions","organizations_url":"https://api.github.com/users/mautibot/orgs","repos_url":"https://api.github.com/users/mautibot/repos","events_url":"https://api.github.com/users/mautibot/events{/privacy}","received_events_url":"https://api.github.com/users/mautibot/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T03:09:00Z","updated_at":"2018-02-24T03:09:00Z","author_association":"NONE","body":"Please share your ideas for new features and product enhancements in the Ideas forum on [Mautic.org](https://www.mautic.org). Otherwise if you have a proof of concept or work in progress and would like feedback, then please submit as a pull request for discussion here."}}
{"actor":{"display_login":"mautibot"}}