{"action":"created","comment":{"url":"https://api.github.com/repos/pac4j/pac4j/pulls/comments/47738083","id":47738083,"diff_hunk":"@@ -0,0 +1,13 @@\n+package org.pac4j.jwt.profile;\n+\n+import org.pac4j.core.profile.CommonProfile;\n+\n+/**\n+ * Represents a user profile based on a JWT.\n+ *\n+ * @author Misagh Moayyed\n+ * @since 1.8.2\n+ */\n+public class JwtProfile extends CommonProfile {","path":"pac4j-jwt/src/main/java/org/pac4j/jwt/profile/JwtProfile.java","position":11,"original_position":11,"commit_id":"83e244298c1402c7bbad2f4e7c0315b72d27eebd","original_commit_id":"83e244298c1402c7bbad2f4e7c0315b72d27eebd","user":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"body":"I am for that idea. I don't see much difference between http and jwt profiles, which is why I thought originally to just return/use the http profile for jwt but I think it's best to keep the jwt profile separate and just have it extend http. ","created_at":"2015-12-16T05:27:30Z","updated_at":"2015-12-16T05:27:30Z","html_url":"https://github.com/pac4j/pac4j/pull/401#discussion_r47738083","pull_request_url":"https://api.github.com/repos/pac4j/pac4j/pulls/401","_links":{"self":{"href":"https://api.github.com/repos/pac4j/pac4j/pulls/comments/47738083"},"html":{"href":"https://github.com/pac4j/pac4j/pull/401#discussion_r47738083"},"pull_request":{"href":"https://api.github.com/repos/pac4j/pac4j/pulls/401"}}},"pull_request":{"url":"https://api.github.com/repos/pac4j/pac4j/pulls/401","id":53670098,"html_url":"https://github.com/pac4j/pac4j/pull/401","diff_url":"https://github.com/pac4j/pac4j/pull/401.diff","patch_url":"https://github.com/pac4j/pac4j/pull/401.patch","issue_url":"https://api.github.com/repos/pac4j/pac4j/issues/401","number":401,"state":"open","locked":false,"title":"Allowed a more generic format for JWTs","user":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"body":"Closes #394 ","created_at":"2015-12-15T07:45:15Z","updated_at":"2015-12-16T05:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"937caffc67a96e5ef4bc2140cb9fcd27340e777a","assignee":null,"milestone":{"url":"https://api.github.com/repos/pac4j/pac4j/milestones/6","html_url":"https://github.com/pac4j/pac4j/milestones/1.8.2","labels_url":"https://api.github.com/repos/pac4j/pac4j/milestones/6/labels","id":1458827,"number":6,"title":"1.8.2","description":null,"creator":{"login":"leleuj","id":1038508,"avatar_url":"https://avatars.githubusercontent.com/u/1038508?v=3","gravatar_id":"","url":"https://api.github.com/users/leleuj","html_url":"https://github.com/leleuj","followers_url":"https://api.github.com/users/leleuj/followers","following_url":"https://api.github.com/users/leleuj/following{/other_user}","gists_url":"https://api.github.com/users/leleuj/gists{/gist_id}","starred_url":"https://api.github.com/users/leleuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leleuj/subscriptions","organizations_url":"https://api.github.com/users/leleuj/orgs","repos_url":"https://api.github.com/users/leleuj/repos","events_url":"https://api.github.com/users/leleuj/events{/privacy}","received_events_url":"https://api.github.com/users/leleuj/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2015-12-14T10:15:19Z","updated_at":"2015-12-16T00:40:08Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/pac4j/pac4j/pulls/401/commits","review_comments_url":"https://api.github.com/repos/pac4j/pac4j/pulls/401/comments","review_comment_url":"https://api.github.com/repos/pac4j/pac4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pac4j/pac4j/issues/401/comments","statuses_url":"https://api.github.com/repos/pac4j/pac4j/statuses/83e244298c1402c7bbad2f4e7c0315b72d27eebd","head":{"label":"mmoayyed:generic-jwts","ref":"generic-jwts","sha":"83e244298c1402c7bbad2f4e7c0315b72d27eebd","user":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"repo":{"id":35601449,"name":"pac4j","full_name":"mmoayyed/pac4j","owner":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmoayyed/pac4j","description":"Multi protocols (OAuth, OpenID, CAS, SAML, HTTP, GAE) auhentication/authorization engine for Java","fork":true,"url":"https://api.github.com/repos/mmoayyed/pac4j","forks_url":"https://api.github.com/repos/mmoayyed/pac4j/forks","keys_url":"https://api.github.com/repos/mmoayyed/pac4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmoayyed/pac4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmoayyed/pac4j/teams","hooks_url":"https://api.github.com/repos/mmoayyed/pac4j/hooks","issue_events_url":"https://api.github.com/repos/mmoayyed/pac4j/issues/events{/number}","events_url":"https://api.github.com/repos/mmoayyed/pac4j/events","assignees_url":"https://api.github.com/repos/mmoayyed/pac4j/assignees{/user}","branches_url":"https://api.github.com/repos/mmoayyed/pac4j/branches{/branch}","tags_url":"https://api.github.com/repos/mmoayyed/pac4j/tags","blobs_url":"https://api.github.com/repos/mmoayyed/pac4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmoayyed/pac4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmoayyed/pac4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmoayyed/pac4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmoayyed/pac4j/statuses/{sha}","languages_url":"https://api.github.com/repos/mmoayyed/pac4j/languages","stargazers_url":"https://api.github.com/repos/mmoayyed/pac4j/stargazers","contributors_url":"https://api.github.com/repos/mmoayyed/pac4j/contributors","subscribers_url":"https://api.github.com/repos/mmoayyed/pac4j/subscribers","subscription_url":"https://api.github.com/repos/mmoayyed/pac4j/subscription","commits_url":"https://api.github.com/repos/mmoayyed/pac4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmoayyed/pac4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmoayyed/pac4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmoayyed/pac4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmoayyed/pac4j/contents/{+path}","compare_url":"https://api.github.com/repos/mmoayyed/pac4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmoayyed/pac4j/merges","archive_url":"https://api.github.com/repos/mmoayyed/pac4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmoayyed/pac4j/downloads","issues_url":"https://api.github.com/repos/mmoayyed/pac4j/issues{/number}","pulls_url":"https://api.github.com/repos/mmoayyed/pac4j/pulls{/number}","milestones_url":"https://api.github.com/repos/mmoayyed/pac4j/milestones{/number}","notifications_url":"https://api.github.com/repos/mmoayyed/pac4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmoayyed/pac4j/labels{/name}","releases_url":"https://api.github.com/repos/mmoayyed/pac4j/releases{/id}","created_at":"2015-05-14T08:54:29Z","updated_at":"2015-05-14T08:54:30Z","pushed_at":"2015-12-15T14:08:59Z","git_url":"git://github.com/mmoayyed/pac4j.git","ssh_url":"git@github.com:mmoayyed/pac4j.git","clone_url":"https://github.com/mmoayyed/pac4j.git","svn_url":"https://github.com/mmoayyed/pac4j","homepage":"http://www.pac4j.org","size":13300,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pac4j:master","ref":"master","sha":"d77ca6d4fb3e728e94a66b929574c3432f301d70","user":{"login":"pac4j","id":7540865,"avatar_url":"https://avatars.githubusercontent.com/u/7540865?v=3","gravatar_id":"","url":"https://api.github.com/users/pac4j","html_url":"https://github.com/pac4j","followers_url":"https://api.github.com/users/pac4j/followers","following_url":"https://api.github.com/users/pac4j/following{/other_user}","gists_url":"https://api.github.com/users/pac4j/gists{/gist_id}","starred_url":"https://api.github.com/users/pac4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pac4j/subscriptions","organizations_url":"https://api.github.com/users/pac4j/orgs","repos_url":"https://api.github.com/users/pac4j/repos","events_url":"https://api.github.com/users/pac4j/events{/privacy}","received_events_url":"https://api.github.com/users/pac4j/received_events","type":"Organization","site_admin":false},"repo":{"id":3291848,"name":"pac4j","full_name":"pac4j/pac4j","owner":{"login":"pac4j","id":7540865,"avatar_url":"https://avatars.githubusercontent.com/u/7540865?v=3","gravatar_id":"","url":"https://api.github.com/users/pac4j","html_url":"https://github.com/pac4j","followers_url":"https://api.github.com/users/pac4j/followers","following_url":"https://api.github.com/users/pac4j/following{/other_user}","gists_url":"https://api.github.com/users/pac4j/gists{/gist_id}","starred_url":"https://api.github.com/users/pac4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pac4j/subscriptions","organizations_url":"https://api.github.com/users/pac4j/orgs","repos_url":"https://api.github.com/users/pac4j/repos","events_url":"https://api.github.com/users/pac4j/events{/privacy}","received_events_url":"https://api.github.com/users/pac4j/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pac4j/pac4j","description":"Security engine for Java (authentication, authorization, multi frameworks)","fork":false,"url":"https://api.github.com/repos/pac4j/pac4j","forks_url":"https://api.github.com/repos/pac4j/pac4j/forks","keys_url":"https://api.github.com/repos/pac4j/pac4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pac4j/pac4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pac4j/pac4j/teams","hooks_url":"https://api.github.com/repos/pac4j/pac4j/hooks","issue_events_url":"https://api.github.com/repos/pac4j/pac4j/issues/events{/number}","events_url":"https://api.github.com/repos/pac4j/pac4j/events","assignees_url":"https://api.github.com/repos/pac4j/pac4j/assignees{/user}","branches_url":"https://api.github.com/repos/pac4j/pac4j/branches{/branch}","tags_url":"https://api.github.com/repos/pac4j/pac4j/tags","blobs_url":"https://api.github.com/repos/pac4j/pac4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pac4j/pac4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pac4j/pac4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/pac4j/pac4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pac4j/pac4j/statuses/{sha}","languages_url":"https://api.github.com/repos/pac4j/pac4j/languages","stargazers_url":"https://api.github.com/repos/pac4j/pac4j/stargazers","contributors_url":"https://api.github.com/repos/pac4j/pac4j/contributors","subscribers_url":"https://api.github.com/repos/pac4j/pac4j/subscribers","subscription_url":"https://api.github.com/repos/pac4j/pac4j/subscription","commits_url":"https://api.github.com/repos/pac4j/pac4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/pac4j/pac4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/pac4j/pac4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/pac4j/pac4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/pac4j/pac4j/contents/{+path}","compare_url":"https://api.github.com/repos/pac4j/pac4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pac4j/pac4j/merges","archive_url":"https://api.github.com/repos/pac4j/pac4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pac4j/pac4j/downloads","issues_url":"https://api.github.com/repos/pac4j/pac4j/issues{/number}","pulls_url":"https://api.github.com/repos/pac4j/pac4j/pulls{/number}","milestones_url":"https://api.github.com/repos/pac4j/pac4j/milestones{/number}","notifications_url":"https://api.github.com/repos/pac4j/pac4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pac4j/pac4j/labels{/name}","releases_url":"https://api.github.com/repos/pac4j/pac4j/releases{/id}","created_at":"2012-01-28T17:04:12Z","updated_at":"2015-12-15T11:42:49Z","pushed_at":"2015-12-15T14:09:00Z","git_url":"git://github.com/pac4j/pac4j.git","ssh_url":"git@github.com:pac4j/pac4j.git","clone_url":"https://github.com/pac4j/pac4j.git","svn_url":"https://github.com/pac4j/pac4j","homepage":"http://www.pac4j.org","size":19016,"stargazers_count":411,"watchers_count":411,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":153,"mirror_url":null,"open_issues_count":25,"forks":153,"open_issues":25,"watchers":411,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pac4j/pac4j/pulls/401"},"html":{"href":"https://github.com/pac4j/pac4j/pull/401"},"issue":{"href":"https://api.github.com/repos/pac4j/pac4j/issues/401"},"comments":{"href":"https://api.github.com/repos/pac4j/pac4j/issues/401/comments"},"review_comments":{"href":"https://api.github.com/repos/pac4j/pac4j/pulls/401/comments"},"review_comment":{"href":"https://api.github.com/repos/pac4j/pac4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pac4j/pac4j/pulls/401/commits"},"statuses":{"href":"https://api.github.com/repos/pac4j/pac4j/statuses/83e244298c1402c7bbad2f4e7c0315b72d27eebd"}}}}