{"action":"created","comment":{"url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/comments/60799193","id":60799193,"diff_hunk":"@@ -16,21 +16,21 @@ The framework integration will provide the application with some means of resolv\n \n * Reading the request headers for authentication information\n * Resolving the access token or API key presented to a Stormpath account\n-* Return this information to the application, along with the method of authentication.\n+* Return this information to the application, along with information about how the request was authenticated.\n \n This information will allow the application to make authorization decisions for the request. \n \n **Unauthenticated Requests**\n \n-In addition, the framework integration MAY provide the application with some means of rendering errors for unauthenticated requests. This may be combined with the Account Resolvers for extra convenience. \n+As a convenience, the framework integration MAY provide the application with a means to, in one step, check for authentication information and render an error if the request is unauthenticated. ","path":"authentication.md","position":null,"original_position":12,"commit_id":"f4d76449498157ab21a51f0226021ea6eb3828c5","original_commit_id":"f4d76449498157ab21a51f0226021ea6eb3828c5","user":{"login":"edjiang","id":918770,"avatar_url":"https://avatars.githubusercontent.com/u/918770?v=3","gravatar_id":"","url":"https://api.github.com/users/edjiang","html_url":"https://github.com/edjiang","followers_url":"https://api.github.com/users/edjiang/followers","following_url":"https://api.github.com/users/edjiang/following{/other_user}","gists_url":"https://api.github.com/users/edjiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edjiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edjiang/subscriptions","organizations_url":"https://api.github.com/users/edjiang/orgs","repos_url":"https://api.github.com/users/edjiang/repos","events_url":"https://api.github.com/users/edjiang/events{/privacy}","received_events_url":"https://api.github.com/users/edjiang/received_events","type":"User","site_admin":false},"body":"Isn't content negotiation part of rendering, and for instance, \"rendering a redirect\" also a rendering function? \r\n\r\nIf my understanding of terminology is incorrect, please correct me, otherwise I'm not seeing what you're describing that isn't rendering. ","created_at":"2016-04-22T20:34:32Z","updated_at":"2016-04-22T20:34:32Z","html_url":"https://github.com/stormpath/stormpath-framework-spec/pull/76#discussion_r60799193","pull_request_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/comments/60799193"},"html":{"href":"https://github.com/stormpath/stormpath-framework-spec/pull/76#discussion_r60799193"},"pull_request":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76","id":64996338,"html_url":"https://github.com/stormpath/stormpath-framework-spec/pull/76","diff_url":"https://github.com/stormpath/stormpath-framework-spec/pull/76.diff","patch_url":"https://github.com/stormpath/stormpath-framework-spec/pull/76.patch","issue_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/76","number":76,"state":"open","locked":false,"title":"Clarified information about authenticators","user":{"login":"edjiang","id":918770,"avatar_url":"https://avatars.githubusercontent.com/u/918770?v=3","gravatar_id":"","url":"https://api.github.com/users/edjiang","html_url":"https://github.com/edjiang","followers_url":"https://api.github.com/users/edjiang/followers","following_url":"https://api.github.com/users/edjiang/following{/other_user}","gists_url":"https://api.github.com/users/edjiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edjiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edjiang/subscriptions","organizations_url":"https://api.github.com/users/edjiang/orgs","repos_url":"https://api.github.com/users/edjiang/repos","events_url":"https://api.github.com/users/edjiang/events{/privacy}","received_events_url":"https://api.github.com/users/edjiang/received_events","type":"User","site_admin":false},"body":"This PR may require a bit more discussion, but when writing #75, I realized that the authenticators document wasn't clear at all, and did not reflect what's in production on Express. While express should not be the reference implementation, I think what's implemented in there should be something we can expect in all frameworks. \r\n\r\nI clarified information about the authentication helpers we should be providing, and the responses they should be giving. \r\n\r\nI named the authenticators based on the latest discussion in https://github.com/stormpath/express-stormpath/issues/173","created_at":"2016-04-01T19:53:17Z","updated_at":"2016-04-22T20:34:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ce6186aa4b46995e04f025a92768b6d68d16443","assignee":{"login":"edjiang","id":918770,"avatar_url":"https://avatars.githubusercontent.com/u/918770?v=3","gravatar_id":"","url":"https://api.github.com/users/edjiang","html_url":"https://github.com/edjiang","followers_url":"https://api.github.com/users/edjiang/followers","following_url":"https://api.github.com/users/edjiang/following{/other_user}","gists_url":"https://api.github.com/users/edjiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edjiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edjiang/subscriptions","organizations_url":"https://api.github.com/users/edjiang/orgs","repos_url":"https://api.github.com/users/edjiang/repos","events_url":"https://api.github.com/users/edjiang/events{/privacy}","received_events_url":"https://api.github.com/users/edjiang/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/milestones/1","html_url":"https://github.com/stormpath/stormpath-framework-spec/milestones/1.0.0","labels_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/milestones/1/labels","id":1578407,"number":1,"title":"1.0.0","description":"","creator":{"login":"omgitstom","id":3199093,"avatar_url":"https://avatars.githubusercontent.com/u/3199093?v=3","gravatar_id":"","url":"https://api.github.com/users/omgitstom","html_url":"https://github.com/omgitstom","followers_url":"https://api.github.com/users/omgitstom/followers","following_url":"https://api.github.com/users/omgitstom/following{/other_user}","gists_url":"https://api.github.com/users/omgitstom/gists{/gist_id}","starred_url":"https://api.github.com/users/omgitstom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgitstom/subscriptions","organizations_url":"https://api.github.com/users/omgitstom/orgs","repos_url":"https://api.github.com/users/omgitstom/repos","events_url":"https://api.github.com/users/omgitstom/events{/privacy}","received_events_url":"https://api.github.com/users/omgitstom/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":11,"state":"open","created_at":"2016-02-11T20:03:58Z","updated_at":"2016-04-21T18:22:56Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76/commits","review_comments_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76/comments","review_comment_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/76/comments","statuses_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/statuses/f4d76449498157ab21a51f0226021ea6eb3828c5","head":{"label":"edjiang:edward/authenticators","ref":"edward/authenticators","sha":"f4d76449498157ab21a51f0226021ea6eb3828c5","user":{"login":"edjiang","id":918770,"avatar_url":"https://avatars.githubusercontent.com/u/918770?v=3","gravatar_id":"","url":"https://api.github.com/users/edjiang","html_url":"https://github.com/edjiang","followers_url":"https://api.github.com/users/edjiang/followers","following_url":"https://api.github.com/users/edjiang/following{/other_user}","gists_url":"https://api.github.com/users/edjiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edjiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edjiang/subscriptions","organizations_url":"https://api.github.com/users/edjiang/orgs","repos_url":"https://api.github.com/users/edjiang/repos","events_url":"https://api.github.com/users/edjiang/events{/privacy}","received_events_url":"https://api.github.com/users/edjiang/received_events","type":"User","site_admin":false},"repo":{"id":51986721,"name":"stormpath-framework-spec","full_name":"edjiang/stormpath-framework-spec","owner":{"login":"edjiang","id":918770,"avatar_url":"https://avatars.githubusercontent.com/u/918770?v=3","gravatar_id":"","url":"https://api.github.com/users/edjiang","html_url":"https://github.com/edjiang","followers_url":"https://api.github.com/users/edjiang/followers","following_url":"https://api.github.com/users/edjiang/following{/other_user}","gists_url":"https://api.github.com/users/edjiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edjiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edjiang/subscriptions","organizations_url":"https://api.github.com/users/edjiang/orgs","repos_url":"https://api.github.com/users/edjiang/repos","events_url":"https://api.github.com/users/edjiang/events{/privacy}","received_events_url":"https://api.github.com/users/edjiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edjiang/stormpath-framework-spec","description":"Language-agnostic API specification for Stormpath Framework Integrations","fork":true,"url":"https://api.github.com/repos/edjiang/stormpath-framework-spec","forks_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/forks","keys_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/teams","hooks_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/hooks","issue_events_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/issues/events{/number}","events_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/events","assignees_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/assignees{/user}","branches_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/branches{/branch}","tags_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/tags","blobs_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/languages","stargazers_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/stargazers","contributors_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/contributors","subscribers_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/subscribers","subscription_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/subscription","commits_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/contents/{+path}","compare_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/merges","archive_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/downloads","issues_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/issues{/number}","pulls_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/labels{/name}","releases_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/releases{/id}","deployments_url":"https://api.github.com/repos/edjiang/stormpath-framework-spec/deployments","created_at":"2016-02-18T06:54:23Z","updated_at":"2016-02-12T16:11:34Z","pushed_at":"2016-04-22T15:32:40Z","git_url":"git://github.com/edjiang/stormpath-framework-spec.git","ssh_url":"git@github.com:edjiang/stormpath-framework-spec.git","clone_url":"https://github.com/edjiang/stormpath-framework-spec.git","svn_url":"https://github.com/edjiang/stormpath-framework-spec","homepage":null,"size":159,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stormpath:master","ref":"master","sha":"15a7af09192fe83d7c46cf3bcbde583ad05cbfc4","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":34878184,"name":"stormpath-framework-spec","full_name":"stormpath/stormpath-framework-spec","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath-framework-spec","description":"Language-agnostic API specification for Stormpath Framework Integrations","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath-framework-spec","forks_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/releases{/id}","deployments_url":"https://api.github.com/repos/stormpath/stormpath-framework-spec/deployments","created_at":"2015-04-30T21:40:42Z","updated_at":"2016-04-13T20:14:19Z","pushed_at":"2016-04-22T15:32:41Z","git_url":"git://github.com/stormpath/stormpath-framework-spec.git","ssh_url":"git@github.com:stormpath/stormpath-framework-spec.git","clone_url":"https://github.com/stormpath/stormpath-framework-spec.git","svn_url":"https://github.com/stormpath/stormpath-framework-spec","homepage":null,"size":193,"stargazers_count":9,"watchers_count":9,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":24,"forks":7,"open_issues":24,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76"},"html":{"href":"https://github.com/stormpath/stormpath-framework-spec/pull/76"},"issue":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/76"},"comments":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/stormpath/stormpath-framework-spec/statuses/f4d76449498157ab21a51f0226021ea6eb3828c5"}}}}