{"action":"created","issue":{"url":"https://api.github.com/repos/dcblock/wiki/issues/5","repository_url":"https://api.github.com/repos/dcblock/wiki","labels_url":"https://api.github.com/repos/dcblock/wiki/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/dcblock/wiki/issues/5/comments","events_url":"https://api.github.com/repos/dcblock/wiki/issues/5/events","html_url":"https://github.com/dcblock/wiki/issues/5","id":388459442,"node_id":"MDU6SXNzdWUzODg0NTk0NDI=","number":5,"title":"JWT 구조가 API 설명서와 다릅니다. 확인 요청 드립니다.","user":{"login":"devdotlog","id":6669011,"node_id":"MDQ6VXNlcjY2NjkwMTE=","avatar_url":"https://avatars3.githubusercontent.com/u/6669011?v=4","gravatar_id":"","url":"https://api.github.com/users/devdotlog","html_url":"https://github.com/devdotlog","followers_url":"https://api.github.com/users/devdotlog/followers","following_url":"https://api.github.com/users/devdotlog/following{/other_user}","gists_url":"https://api.github.com/users/devdotlog/gists{/gist_id}","starred_url":"https://api.github.com/users/devdotlog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devdotlog/subscriptions","organizations_url":"https://api.github.com/users/devdotlog/orgs","repos_url":"https://api.github.com/users/devdotlog/repos","events_url":"https://api.github.com/users/devdotlog/events{/privacy}","received_events_url":"https://api.github.com/users/devdotlog/received_events","type":"User","site_admin":false},"labels":[{"id":1146528231,"node_id":"MDU6TGFiZWwxMTQ2NTI4MjMx","url":"https://api.github.com/repos/dcblock/wiki/labels/API%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8","name":"API 업데이트","color":"ef7598","default":false}],"state":"open","locked":false,"assignee":{"login":"Beagleme","id":13342100,"node_id":"MDQ6VXNlcjEzMzQyMTAw","avatar_url":"https://avatars0.githubusercontent.com/u/13342100?v=4","gravatar_id":"","url":"https://api.github.com/users/Beagleme","html_url":"https://github.com/Beagleme","followers_url":"https://api.github.com/users/Beagleme/followers","following_url":"https://api.github.com/users/Beagleme/following{/other_user}","gists_url":"https://api.github.com/users/Beagleme/gists{/gist_id}","starred_url":"https://api.github.com/users/Beagleme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beagleme/subscriptions","organizations_url":"https://api.github.com/users/Beagleme/orgs","repos_url":"https://api.github.com/users/Beagleme/repos","events_url":"https://api.github.com/users/Beagleme/events{/privacy}","received_events_url":"https://api.github.com/users/Beagleme/received_events","type":"User","site_admin":false},"assignees":[{"login":"Beagleme","id":13342100,"node_id":"MDQ6VXNlcjEzMzQyMTAw","avatar_url":"https://avatars0.githubusercontent.com/u/13342100?v=4","gravatar_id":"","url":"https://api.github.com/users/Beagleme","html_url":"https://github.com/Beagleme","followers_url":"https://api.github.com/users/Beagleme/followers","following_url":"https://api.github.com/users/Beagleme/following{/other_user}","gists_url":"https://api.github.com/users/Beagleme/gists{/gist_id}","starred_url":"https://api.github.com/users/Beagleme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beagleme/subscriptions","organizations_url":"https://api.github.com/users/Beagleme/orgs","repos_url":"https://api.github.com/users/Beagleme/repos","events_url":"https://api.github.com/users/Beagleme/events{/privacy}","received_events_url":"https://api.github.com/users/Beagleme/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-12-07T00:47:23Z","updated_at":"2018-12-07T04:31:26Z","closed_at":null,"author_association":"NONE","body":"API 설명서에서 JWT 구조\r\n```json\r\n{  \r\n\t\"roles\":[\"operator\"],\r\n\t\"grants\":[manageuser, managemenu, viewstatiscs, manageadmin], \r\n\t\"company\":\"digicap\"\r\n}\r\n```\r\n\r\n현재 JWT 구조\r\n```json\r\n{\r\n  \"role\": 1000,\r\n  \"iss\": \"dcadmin\",\r\n  \"company\": \"DigiCAP\",\r\n  \"id\": \"admin\",\r\n  \"exp\": 1544149137,\r\n  \"grant\": [\r\n    null,\r\n    null,\r\n    null,\r\n    null\r\n  ],\r\n  \"iat\": 1544143137\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dcblock/wiki/issues/comments/445119565","html_url":"https://github.com/dcblock/wiki/issues/5#issuecomment-445119565","issue_url":"https://api.github.com/repos/dcblock/wiki/issues/5","id":445119565,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTExOTU2NQ==","user":{"login":"Beagleme","id":13342100,"node_id":"MDQ6VXNlcjEzMzQyMTAw","avatar_url":"https://avatars0.githubusercontent.com/u/13342100?v=4","gravatar_id":"","url":"https://api.github.com/users/Beagleme","html_url":"https://github.com/Beagleme","followers_url":"https://api.github.com/users/Beagleme/followers","following_url":"https://api.github.com/users/Beagleme/following{/other_user}","gists_url":"https://api.github.com/users/Beagleme/gists{/gist_id}","starred_url":"https://api.github.com/users/Beagleme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beagleme/subscriptions","organizations_url":"https://api.github.com/users/Beagleme/orgs","repos_url":"https://api.github.com/users/Beagleme/repos","events_url":"https://api.github.com/users/Beagleme/events{/privacy}","received_events_url":"https://api.github.com/users/Beagleme/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T04:31:26Z","updated_at":"2018-12-07T04:31:26Z","author_association":"NONE","body":"@devdotlog \r\n말씀하신 부분 수정하여 반영하여 배포하였습니다.\r\n\r\n[#추가로 JWT 인증 토큰 정의](https://github.com/dcblock/wiki/wiki/JWT-%EC%9D%B8%EC%A6%9D-%ED%86%A0%ED%81%B0-%EC%A0%95%EC%9D%98) 문서도 수정하였습니다.\r\n\r\n### Request Token\r\n```json\r\n{\r\n\t\"id\" : \"admin\",\r\n\t\"password\" : \"abcd1234\"\r\n}\r\n```\r\n### Response Token(PayLoad Base64 Decode)\r\n```json\r\n{\r\n\t\"scope\":\"ADMIN\",\r\n\t\"iss\":\"dcadmin\",\r\n\t\"company\":\"DigiCAP\",\r\n\t\"id\":\"admin\",\r\n\t\"exp\":1544162590,\r\n\t\"iat\":1544156590,\r\n\t\"authorities\":[\"ROLE_MANAGEUSER\",\"ROLE_MANAGEMENT\",\"ROLE_VIEWSTATISTICS\",\"ROLE_MANAGEADMIN\"]\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"Beagleme"}}