{"action":"opened","issue":{"url":"https://api.github.com/repos/devicehive/devicehive-java-server/issues/530","repository_url":"https://api.github.com/repos/devicehive/devicehive-java-server","labels_url":"https://api.github.com/repos/devicehive/devicehive-java-server/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/devicehive/devicehive-java-server/issues/530/comments","events_url":"https://api.github.com/repos/devicehive/devicehive-java-server/issues/530/events","html_url":"https://github.com/devicehive/devicehive-java-server/issues/530","id":345134008,"node_id":"MDU6SXNzdWUzNDUxMzQwMDg=","number":530,"title":"Purpose of the /token/create api ?","user":{"login":"babyangel0307","id":19942869,"node_id":"MDQ6VXNlcjE5OTQyODY5","avatar_url":"https://avatars2.githubusercontent.com/u/19942869?v=4","gravatar_id":"","url":"https://api.github.com/users/babyangel0307","html_url":"https://github.com/babyangel0307","followers_url":"https://api.github.com/users/babyangel0307/followers","following_url":"https://api.github.com/users/babyangel0307/following{/other_user}","gists_url":"https://api.github.com/users/babyangel0307/gists{/gist_id}","starred_url":"https://api.github.com/users/babyangel0307/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babyangel0307/subscriptions","organizations_url":"https://api.github.com/users/babyangel0307/orgs","repos_url":"https://api.github.com/users/babyangel0307/repos","events_url":"https://api.github.com/users/babyangel0307/events{/privacy}","received_events_url":"https://api.github.com/users/babyangel0307/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-27T08:18:39Z","updated_at":"2018-07-27T08:18:39Z","closed_at":null,"author_association":"NONE","body":"HI developers\r\nI'm confusing on the /token/create api. \r\nMay i know the purpose of this api?\r\n\r\nSince i think it has a security hole on it.\r\nA client user can grant any permission according to the following flow:\r\n1. A client user login itself\r\n2. Access token of client user default has MANAGE_TOKEN permission \r\n3. Client user can call /token/create api with ANY permission or User ID \r\nIn this case, client can create an admin token or ANY permission token"}}
{"actor":{"display_login":"babyangel0307"}}