{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/1653","repository_url":"https://api.github.com/repos/Mashape/kong","labels_url":"https://api.github.com/repos/Mashape/kong/issues/1653/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/1653/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/1653/events","html_url":"https://github.com/Mashape/kong/issues/1653","id":177647413,"number":1653,"title":"OAuth 2 plugin does not autogenerate provision_key attribute","user":{"login":"petrdvorak","id":516597,"avatar_url":"https://avatars.githubusercontent.com/u/516597?v=3","gravatar_id":"","url":"https://api.github.com/users/petrdvorak","html_url":"https://github.com/petrdvorak","followers_url":"https://api.github.com/users/petrdvorak/followers","following_url":"https://api.github.com/users/petrdvorak/following{/other_user}","gists_url":"https://api.github.com/users/petrdvorak/gists{/gist_id}","starred_url":"https://api.github.com/users/petrdvorak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrdvorak/subscriptions","organizations_url":"https://api.github.com/users/petrdvorak/orgs","repos_url":"https://api.github.com/users/petrdvorak/repos","events_url":"https://api.github.com/users/petrdvorak/events{/privacy}","received_events_url":"https://api.github.com/users/petrdvorak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mashape/kong/labels/oauth2","name":"oauth2","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-18T11:50:37Z","updated_at":"2016-09-19T20:16:58Z","closed_at":null,"body":"When creating an OAuth 2.0 plugin with an empty provisioning_key attribute, the provision_key should be automatically generated. This, however, is not the case.\r\n\r\n```\r\n$ curl -X POST http://192.168.99.100:8001/apis/cef9f773-46e2-4f94-9ca8-1e25b190c887/plugins --data \"name=oauth2\" --data \"config.scopes=email, phone, address\" --data \"config.mandatory_scope=true\" --data \"config.enable_authorization_code=true\" | json_pp\r\n\r\n{\r\n   \"api_id\" : \"cef9f773-46e2-4f94-9ca8-1e25b190c887\",\r\n   \"config\" : {\r\n      \"mandatory_scope\" : true,\r\n      \"accept_http_if_already_terminated\" : false,\r\n      \"scopes\" : [\r\n         \"email\",\r\n         \"phone\",\r\n         \"address\"\r\n      ],\r\n      \"enable_authorization_code\" : true,\r\n      \"hide_credentials\" : false,\r\n      \"enable_client_credentials\" : false,\r\n      \"enable_implicit_grant\" : false,\r\n      \"token_expiration\" : 7200,\r\n      \"enable_password_grant\" : false\r\n   },\r\n   \"name\" : \"oauth2\",\r\n   \"enabled\" : true,\r\n   \"created_at\" : 1474199382000,\r\n   \"id\" : \"facadd31-c286-4543-98ce-820d4052e132\"\r\n}\r\n```\r\n\r\n### Additional Details & Logs\r\n\r\n- Kong version 0.9.1\r\n- Operating System - Mac OS X 10.11.6, running in Docker\r\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/248112126","html_url":"https://github.com/Mashape/kong/issues/1653#issuecomment-248112126","issue_url":"https://api.github.com/repos/Mashape/kong/issues/1653","id":248112126,"user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T20:16:57Z","updated_at":"2016-09-19T20:16:57Z","body":"@petrdvorak I am trying to replicate your issue without success with Kong 0.9.1 and with the `next` branch which will become 0.9.2. How are you creating the plugin?"}}
{"actor":{"display_login":"thefosk"}}