{"action":"created","comment":{"url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/comments/232472993","pull_request_review_id":173682839,"id":232472993,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjQ3Mjk5Mw==","diff_hunk":"@@ -6,12 +6,64 @@\n     permissions,\n     status\n )\n+from rest_framework.decorators import (\n+    authentication_classes,\n+    permission_classes\n+)\n from api import (\n     models,\n     serializers,\n     permissions as custom_permissions,\n )\n-\n+from jwt import encode\n+from decouple import config\n+from datetime import datetime\n+\n+@authentication_classes([])\n+@permission_classes([])","path":"api/views.py","position":19,"original_position":19,"commit_id":"00bd7f311c1dd6f534057de6a6570149b21bfbb5","original_commit_id":"00bd7f311c1dd6f534057de6a6570149b21bfbb5","user":{"login":"jatinkatyal13","id":18536540,"node_id":"MDQ6VXNlcjE4NTM2NTQw","avatar_url":"https://avatars1.githubusercontent.com/u/18536540?v=4","gravatar_id":"","url":"https://api.github.com/users/jatinkatyal13","html_url":"https://github.com/jatinkatyal13","followers_url":"https://api.github.com/users/jatinkatyal13/followers","following_url":"https://api.github.com/users/jatinkatyal13/following{/other_user}","gists_url":"https://api.github.com/users/jatinkatyal13/gists{/gist_id}","starred_url":"https://api.github.com/users/jatinkatyal13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jatinkatyal13/subscriptions","organizations_url":"https://api.github.com/users/jatinkatyal13/orgs","repos_url":"https://api.github.com/users/jatinkatyal13/repos","events_url":"https://api.github.com/users/jatinkatyal13/events{/privacy}","received_events_url":"https://api.github.com/users/jatinkatyal13/received_events","type":"User","site_admin":false},"body":"Since this is a class based view now won't the class attributes ( permission_classes, authentication_classes ) would work?","created_at":"2018-11-11T02:59:03Z","updated_at":"2018-11-11T02:59:03Z","html_url":"https://github.com/JBossOutreach/certificate-generator-server/pull/33#discussion_r232472993","pull_request_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/comments/232472993"},"html":{"href":"https://github.com/JBossOutreach/certificate-generator-server/pull/33#discussion_r232472993"},"pull_request":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33"}},"in_reply_to_id":232457801},"pull_request":{"url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33","id":229687772,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5Njg3Nzcy","html_url":"https://github.com/JBossOutreach/certificate-generator-server/pull/33","diff_url":"https://github.com/JBossOutreach/certificate-generator-server/pull/33.diff","patch_url":"https://github.com/JBossOutreach/certificate-generator-server/pull/33.patch","issue_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues/33","number":33,"state":"open","locked":false,"title":"JWT authentication for users and cert issuers","user":{"login":"junron","id":26194273,"node_id":"MDQ6VXNlcjI2MTk0Mjcz","avatar_url":"https://avatars2.githubusercontent.com/u/26194273?v=4","gravatar_id":"","url":"https://api.github.com/users/junron","html_url":"https://github.com/junron","followers_url":"https://api.github.com/users/junron/followers","following_url":"https://api.github.com/users/junron/following{/other_user}","gists_url":"https://api.github.com/users/junron/gists{/gist_id}","starred_url":"https://api.github.com/users/junron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junron/subscriptions","organizations_url":"https://api.github.com/users/junron/orgs","repos_url":"https://api.github.com/users/junron/repos","events_url":"https://api.github.com/users/junron/events{/privacy}","received_events_url":"https://api.github.com/users/junron/received_events","type":"User","site_admin":false},"body":"[GCI task](https://codein.withgoogle.com/dashboard/task-instances/4898384772071424/)\r\n\r\n- [X] Create users and save to database\r\n- [X] Permission to issue certificates\r\n- [X] JWT expiration and issuance data\r\n- [X]  Add tests\r\n  - [X]  Test API endpoints using HTTP\r\n- [X]  Use CreateAPIView instead of APIView","created_at":"2018-11-09T13:04:26Z","updated_at":"2018-11-11T02:59:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3eb9d030ddaae69d37f0b4819657ad3a2396bf0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33/commits","review_comments_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33/comments","review_comment_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues/33/comments","statuses_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/statuses/00bd7f311c1dd6f534057de6a6570149b21bfbb5","head":{"label":"junron:jwt-auth","ref":"jwt-auth","sha":"00bd7f311c1dd6f534057de6a6570149b21bfbb5","user":{"login":"junron","id":26194273,"node_id":"MDQ6VXNlcjI2MTk0Mjcz","avatar_url":"https://avatars2.githubusercontent.com/u/26194273?v=4","gravatar_id":"","url":"https://api.github.com/users/junron","html_url":"https://github.com/junron","followers_url":"https://api.github.com/users/junron/followers","following_url":"https://api.github.com/users/junron/following{/other_user}","gists_url":"https://api.github.com/users/junron/gists{/gist_id}","starred_url":"https://api.github.com/users/junron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junron/subscriptions","organizations_url":"https://api.github.com/users/junron/orgs","repos_url":"https://api.github.com/users/junron/repos","events_url":"https://api.github.com/users/junron/events{/privacy}","received_events_url":"https://api.github.com/users/junron/received_events","type":"User","site_admin":false},"repo":{"id":156815849,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY4MTU4NDk=","name":"certificate-generator-server","full_name":"junron/certificate-generator-server","private":false,"owner":{"login":"junron","id":26194273,"node_id":"MDQ6VXNlcjI2MTk0Mjcz","avatar_url":"https://avatars2.githubusercontent.com/u/26194273?v=4","gravatar_id":"","url":"https://api.github.com/users/junron","html_url":"https://github.com/junron","followers_url":"https://api.github.com/users/junron/followers","following_url":"https://api.github.com/users/junron/following{/other_user}","gists_url":"https://api.github.com/users/junron/gists{/gist_id}","starred_url":"https://api.github.com/users/junron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junron/subscriptions","organizations_url":"https://api.github.com/users/junron/orgs","repos_url":"https://api.github.com/users/junron/repos","events_url":"https://api.github.com/users/junron/events{/privacy}","received_events_url":"https://api.github.com/users/junron/received_events","type":"User","site_admin":false},"html_url":"https://github.com/junron/certificate-generator-server","description":"An automatic certificate generator for events","fork":true,"url":"https://api.github.com/repos/junron/certificate-generator-server","forks_url":"https://api.github.com/repos/junron/certificate-generator-server/forks","keys_url":"https://api.github.com/repos/junron/certificate-generator-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junron/certificate-generator-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junron/certificate-generator-server/teams","hooks_url":"https://api.github.com/repos/junron/certificate-generator-server/hooks","issue_events_url":"https://api.github.com/repos/junron/certificate-generator-server/issues/events{/number}","events_url":"https://api.github.com/repos/junron/certificate-generator-server/events","assignees_url":"https://api.github.com/repos/junron/certificate-generator-server/assignees{/user}","branches_url":"https://api.github.com/repos/junron/certificate-generator-server/branches{/branch}","tags_url":"https://api.github.com/repos/junron/certificate-generator-server/tags","blobs_url":"https://api.github.com/repos/junron/certificate-generator-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junron/certificate-generator-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junron/certificate-generator-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/junron/certificate-generator-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junron/certificate-generator-server/statuses/{sha}","languages_url":"https://api.github.com/repos/junron/certificate-generator-server/languages","stargazers_url":"https://api.github.com/repos/junron/certificate-generator-server/stargazers","contributors_url":"https://api.github.com/repos/junron/certificate-generator-server/contributors","subscribers_url":"https://api.github.com/repos/junron/certificate-generator-server/subscribers","subscription_url":"https://api.github.com/repos/junron/certificate-generator-server/subscription","commits_url":"https://api.github.com/repos/junron/certificate-generator-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/junron/certificate-generator-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/junron/certificate-generator-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/junron/certificate-generator-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/junron/certificate-generator-server/contents/{+path}","compare_url":"https://api.github.com/repos/junron/certificate-generator-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junron/certificate-generator-server/merges","archive_url":"https://api.github.com/repos/junron/certificate-generator-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junron/certificate-generator-server/downloads","issues_url":"https://api.github.com/repos/junron/certificate-generator-server/issues{/number}","pulls_url":"https://api.github.com/repos/junron/certificate-generator-server/pulls{/number}","milestones_url":"https://api.github.com/repos/junron/certificate-generator-server/milestones{/number}","notifications_url":"https://api.github.com/repos/junron/certificate-generator-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junron/certificate-generator-server/labels{/name}","releases_url":"https://api.github.com/repos/junron/certificate-generator-server/releases{/id}","deployments_url":"https://api.github.com/repos/junron/certificate-generator-server/deployments","created_at":"2018-11-09T05:43:38Z","updated_at":"2018-11-09T05:43:39Z","pushed_at":"2018-11-10T01:56:59Z","git_url":"git://github.com/junron/certificate-generator-server.git","ssh_url":"git@github.com:junron/certificate-generator-server.git","clone_url":"https://github.com/junron/certificate-generator-server.git","svn_url":"https://github.com/junron/certificate-generator-server","homepage":"https://cert-gen-jboss.herokuapp.com/","size":100,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JBossOutreach:master","ref":"master","sha":"bf1c91c9b4f5c3e61989c009e3d6393339695e15","user":{"login":"JBossOutreach","id":32942326,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTQyMzI2","avatar_url":"https://avatars0.githubusercontent.com/u/32942326?v=4","gravatar_id":"","url":"https://api.github.com/users/JBossOutreach","html_url":"https://github.com/JBossOutreach","followers_url":"https://api.github.com/users/JBossOutreach/followers","following_url":"https://api.github.com/users/JBossOutreach/following{/other_user}","gists_url":"https://api.github.com/users/JBossOutreach/gists{/gist_id}","starred_url":"https://api.github.com/users/JBossOutreach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBossOutreach/subscriptions","organizations_url":"https://api.github.com/users/JBossOutreach/orgs","repos_url":"https://api.github.com/users/JBossOutreach/repos","events_url":"https://api.github.com/users/JBossOutreach/events{/privacy}","received_events_url":"https://api.github.com/users/JBossOutreach/received_events","type":"Organization","site_admin":false},"repo":{"id":143728969,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3Mjg5Njk=","name":"certificate-generator-server","full_name":"JBossOutreach/certificate-generator-server","private":false,"owner":{"login":"JBossOutreach","id":32942326,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTQyMzI2","avatar_url":"https://avatars0.githubusercontent.com/u/32942326?v=4","gravatar_id":"","url":"https://api.github.com/users/JBossOutreach","html_url":"https://github.com/JBossOutreach","followers_url":"https://api.github.com/users/JBossOutreach/followers","following_url":"https://api.github.com/users/JBossOutreach/following{/other_user}","gists_url":"https://api.github.com/users/JBossOutreach/gists{/gist_id}","starred_url":"https://api.github.com/users/JBossOutreach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBossOutreach/subscriptions","organizations_url":"https://api.github.com/users/JBossOutreach/orgs","repos_url":"https://api.github.com/users/JBossOutreach/repos","events_url":"https://api.github.com/users/JBossOutreach/events{/privacy}","received_events_url":"https://api.github.com/users/JBossOutreach/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JBossOutreach/certificate-generator-server","description":"An automatic certificate generator for events","fork":false,"url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server","forks_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/forks","keys_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/teams","hooks_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/hooks","issue_events_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues/events{/number}","events_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/events","assignees_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/assignees{/user}","branches_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/branches{/branch}","tags_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/tags","blobs_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/statuses/{sha}","languages_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/languages","stargazers_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/stargazers","contributors_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/contributors","subscribers_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/subscribers","subscription_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/subscription","commits_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/contents/{+path}","compare_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/merges","archive_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/downloads","issues_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues{/number}","pulls_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls{/number}","milestones_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/milestones{/number}","notifications_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/labels{/name}","releases_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/releases{/id}","deployments_url":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/deployments","created_at":"2018-08-06T12:58:42Z","updated_at":"2018-11-06T20:11:24Z","pushed_at":"2018-11-10T07:34:21Z","git_url":"git://github.com/JBossOutreach/certificate-generator-server.git","ssh_url":"git@github.com:JBossOutreach/certificate-generator-server.git","clone_url":"https://github.com/JBossOutreach/certificate-generator-server.git","svn_url":"https://github.com/JBossOutreach/certificate-generator-server","homepage":"https://cert-gen-jboss.herokuapp.com/","size":92,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":18,"open_issues":8,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33"},"html":{"href":"https://github.com/JBossOutreach/certificate-generator-server/pull/33"},"issue":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues/33"},"comments":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/JBossOutreach/certificate-generator-server/statuses/00bd7f311c1dd6f534057de6a6570149b21bfbb5"}},"author_association":"NONE"}}
{"actor":{"display_login":"jatinkatyal13"}}