{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/comments/47574185","id":47574185,"diff_hunk":"@@ -0,0 +1,166 @@\n+.. _security-authentication-cookie-middleware:\n+\n+Using Cookie Middleware without ASP.NET Identity\n+================================================\n+\n+ASP.NET v5 provides cookie :ref:`middleware <fundamentals-middleware>` which serializes a user principal into an encrypted cookie and then, on subsequent requests, validates the cookie, recreates the principal and assigns it to the ``User`` property on ``HttpContext``. If you want to provide your on login screens and user databases you can use the cookie middleware as a standalone feature.\n+\n+.. _security-authentication-cookie-middleware-configuring:\n+\n+Adding and configuring\n+----------------------\n+\n+The first step is adding the cookie middleware to your application. First use nuget to add the ``Microsoft.AspNet.Authentication.Cookies`` package. Then add the following lines to the ``Configure`` method in your ``Startup.cs`` file;\n+\n+.. code-block:: c#\n+\n+ app.UseCookieAuthentication(options =>\n+ {\n+     options.AuthenticationScheme = \"MyCookieMiddlewareInstance\";\n+     options.LoginPath = new PathString(\"/Account/Unauthorized/\");\n+     options.AccessDeniedPath = new PathString(\"/Account/Forbidden/\");\n+     options.AutomaticAuthenticate = true;\n+     options.AutomaticChallenge = true;\n+ });\n+\n+The code snippet above configures a few options;\n+\n+* AuthenticationScheme - this is a value by which the middleware is known. This is useful when there are multiple instances of middleware and you want to :ref:`limit authorization to one instance <security-authorization-limiting-by-scheme>`.\n+* LoginPath - this is the relative path requests will be redirected to when a user attempts to access a resource but has not been authenticated.\n+* AccessDeniedPath - this is the relative path requests will be redirected to when a user attempts to access a resource but does not pass any :ref:`authorization policies <security-authorization-policies-based>` for that resource.\n+* AutomaticAuthenticate - this flag indicates that the middleware should run on every request and attempt to validate and reconstruct any serialized principal it created.\n+* AutomaticChallenge - this flag indicates that the middleware should redirect the browser to the ``LoginPath`` or ``AccessDeniedPath`` when authorization fails.\n+ \n+:ref:`Other options <security-authentication-cookie-options>` include the ability to set the issuer for any claims the middleware creates, the name of the cookie the middleware drops, the domain for the cookie and various security properties on the cookie. By default the cookie middleware will use appropriate security options for any cookies it creates, setting HTTPONLY to avoid the cookie being accessible in client side JavaScript and limiting the cookie to HTTPS if a request has come over HTTPS.\n+\n+.. _security-authentication-cookie-middleware-creating-a-cookie:\n+ \n+Creating an identity cookie\n+---------------------------\n+\n+To create a cookie holding your user information you must construct a `ClaimsPrincipal <https://msdn.microsoft.com/en-us/library/system.security.claims.claimsprincipal(v=vs.110).aspx>`_ holding the information you wish to be serialized in the cookie. Once you have a suitable `ClaimsPrincipal` inside your controller method call\n+\n+ .. code-block:: c#\n+  \n+  await HttpContext.Authentication.SignInAsync(\"MyCookieMiddlewareInstrance\", principal);\n+\n+This will create an encrypted cookie and add it to the current response. The ``AuthenticationScheme`` specified during :ref:`configuration <security-authentication-cookie-middleware-configuring>` must also be used when calling ``SignInAsync``.\n+\n+Under the covers the encryption used is ASP.NET's :ref:`Data Protection <security-data-protection-getting-started>` system. If you are hosting on multiple machines, load balancing or using a web farm then you will need to :ref:`configure <data-protection-configuring>` data protection to use the same key ring and application identifier.\n+\n+Signing out\n+-----------\n+\n+To sign out the current user, and delete their cookie call the following inside your controller\n+\n+.. code-block:: c#\n+\n+ await HttpContext.Authentication.SignOutAsync(\"MyCookieMiddlewareInstance\");\n+\n+Reacting to back-end changes\n+----------------------------\n+\n+.. warning::\n+  Once a principal cookie has been created it becomes the single source of identity - even if you disable a user in your back-end systems the cookie middleware has no knowledge of this and a user will continue to stay logged in as long as their cookie is valid. \n+\n+The cookie authentication middleware provides a series of Events in its option class. The ``ValidateAsync()`` event can be used to intercept and override validation of the cookie identity.\n+\n+Consider a back-end user database that may have a LastChanged column. In order to invalidate a cookie when the database changes you should first, when :ref:`creating the cookie <security-authentication-cookie-middleware-creating-a-cookie>`, add a LastChanged claim containing the current value. Then, when the database changes the LastChanged value should also be updated. \n+\n+To implement an override for the ``ValidateAsync()`` event you must write a method with the following signature;\n+\n+.. code-block:: c#\n+\n+ Task ValidateAsync(CookieValidatePrincipalContext context);\n+\n+ASP.NET Identity implements this check as part of its `SecurityStampValidator <https://github.com/aspnet/Identity/blob/dev/src/Microsoft.AspNet.Identity/SecurityStampValidator.cs>`_. An simple example would look something like as follows;\n+\n+.. code-block:: c#\n+\n+ public static class LastChangedValidator\n+ {\n+     public static async Task ValidateAsync(CookieValidatePrincipalContext context)\n+     {\n+         // Pull database from registered DI services.\n+         var userRepository = context.HttpContext.RequestServices.GetRequiredService<IUserRepository>();\n+         var userPrincipal = context.Principal;\n+\n+         // Look for the last changed claim.\n+         string lastChanged;\n+         lastChanged = (from c in userPrincipal.Claims\n+                        where c.Type == \"LastUpdated\"\n+                        select c.Value).FirstOrDefault();\n+\n+         if (string.IsNullOrEmpty(lastChanged) ||\n+             !userRepository.ValidateLastChanged(userPrincipal, lastChanged))\n+         {\n+             context.RejectPrincipal();\n+             await context.HttpContext.Authentication.SignOutAsync(\"MyCookieMiddlewareInstance\");\n+         }\n+     }\n+ }\n+\n+This would then be wired up during cookie middleware configuration\n+\n+.. code-block:: c#\n+\n+ app.UseCookieAuthentication(options =>\n+ {\n+     options.Events = new CookieAuthenticationEvents\n+     {\n+         // Set other options\n+         OnValidatePrincipal = LastChangedValidator.ValidateAsync\n+     };\n+ });\n+\n+If you want to non-destructively update the user principal, for example, their name might have been updated, a decision which doesn't affect security in any way you can call ``context.ReplacePrincipal()`` and set the ``context.ShouldRenew`` flag to ``true``.\n+\n+.. _security-authentication-cookie-options:\n+\n+Controlling cookie options\n+--------------------------\n+\n+The ``CookieAuthenticationOptions`` class comes with various configuration options to enable you to fine tune the cookies created.\n+\n+* **ClaimsIssuer** - the issuer to be used for the `Issuer <https://msdn.microsoft.com/en-us/library/microsoft.identitymodel.claims.claim.issuer.aspx>`_ property on any claims created by the middleware.\n+* **CookieDomain** - the domain name the cookie will be served to. By default this is the host name the request was sent to. The browser will only serve the cookie to a matching host name. You may wish to adjust this to have cookies available to any host in your domain. For example setting the cookie domain to ``.contoso.com`` will make it available to ``contoso.com``, ``www.contoso.com``, ``staging.www.contoso.com`` etc.\n+* **CookieHttpOnly** - a flag indicating if the cookie should only be accessible to servers. This defaults to ``true``. Changing this value may open your application to cookie theft should your application have a Cross Site Scripting bug.\n+* **CookiePath** - this can be used to isolate applications running on the same host name. By default any cookies generated will have a path of ``\\`` which makes them available to any request path on your website. If you have an app running in ``/app1`` and want to limit the cookies issued to just be sent to that application then you should set the ``CookiePath`` property to ``/app1``. The cookie will now only be available to requests to ``//app1`` or anything underneath it.\n+* **CookieSecure** - a flag indicating if the cookie created should be limited to HTTPS, HTTP or HTTPS, or the same protocol as the request. This defaults to ``SameAsRequest``. \n+* **ExpireTimeSpan** - the ``TimeSpan`` after which the cookie will expire. This is added to the current date and time to create the expiry date for the cookie.\n+* **SlidingExpiration** - a flag indicating if the cookie expiration date will be reset when the more than half of the ``ExpireTimeSpan`` interval has passed. The new expiry date will be moved forward to be the current date plus the ``ExpireTimespan``. An :ref:`absolute expiry time <security-authentication-absolute-expiry>` can be set by using the ``AuthenticationProperties`` class when calling ``SignInAsync``. An absolute expiry can improve the security of your application by limiting the amount of time for which the authentication cookie is valid.\n+\n+Non-persistent cookies and absolute expiry times\n+------------------------------------------------\n+\n+You may want to make the cookie expire when the browser is closed, or be remembered over browser sessions. You may also want an absolute expiry to the identity and the cookie transporting it. You can do these things by using the ``AuthenticationProperties`` parameter on the ``HttpContext.Authentication.SignInAsync`` method called when :ref:`signing in an identity and creating the cookie<security-authentication-cookie-middleware-creating-a-cookie>`. The ``AuthenticationProperties`` class is in the ``Microsoft.AspNet.Http.Authentication`` namespace.\n+\n+For example;\n+\n+.. code-block:: c#\n+\n+ await HttpContext.Authentication.SignInAsync(\n+     \"MyCookieMiddlewareInstance\", \n+     principal,\n+     new AuthenticationProperties\n+     {\n+         IsPersistent = false                        \n+     });\n+\n+This code snippet will create an identity and corresponding cookie which will be cleared when the browser closes. This ignores any sliding expiration settings previously configured via :ref:`cookie options <security-authentication-cookie-options>`.\n+\n+.. _security-authentication-absolute-expiry:\n+\n+.. code-block:: c#\n+\n+ await HttpContext.Authentication.SignInAsync(\n+     \"MyCookieMiddlewareInstance\", \n+     principal,\n+     new AuthenticationProperties\n+     {\n+         ExpiresUtc = DateTime.UtcNow.AddMinutes(20)","path":"aspnet/security/authentication/cookieauthentication.rst","position":161,"original_position":161,"commit_id":"6a7eb6ac683e297001663e12fcde31a554521153","original_commit_id":"6a7eb6ac683e297001663e12fcde31a554521153","user":{"login":"PinpointTownes","id":6998306,"avatar_url":"https://avatars.githubusercontent.com/u/6998306?v=3","gravatar_id":"","url":"https://api.github.com/users/PinpointTownes","html_url":"https://github.com/PinpointTownes","followers_url":"https://api.github.com/users/PinpointTownes/followers","following_url":"https://api.github.com/users/PinpointTownes/following{/other_user}","gists_url":"https://api.github.com/users/PinpointTownes/gists{/gist_id}","starred_url":"https://api.github.com/users/PinpointTownes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PinpointTownes/subscriptions","organizations_url":"https://api.github.com/users/PinpointTownes/orgs","repos_url":"https://api.github.com/users/PinpointTownes/repos","events_url":"https://api.github.com/users/PinpointTownes/events{/privacy}","received_events_url":"https://api.github.com/users/PinpointTownes/received_events","type":"User","site_admin":false},"body":"Damn, removing `IsPersistent` won't work. You need to specify `IsPersistent = true` if you want to avoid issuing a session cookie :smile: ","created_at":"2015-12-14T23:13:04Z","updated_at":"2015-12-14T23:13:04Z","html_url":"https://github.com/aspnet/Docs/pull/783#discussion_r47574185","pull_request_url":"https://api.github.com/repos/aspnet/Docs/pulls/783","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments/47574185"},"html":{"href":"https://github.com/aspnet/Docs/pull/783#discussion_r47574185"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/783"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/783","id":53308822,"html_url":"https://github.com/aspnet/Docs/pull/783","diff_url":"https://github.com/aspnet/Docs/pull/783.diff","patch_url":"https://github.com/aspnet/Docs/pull/783.patch","issue_url":"https://api.github.com/repos/aspnet/Docs/issues/783","number":783,"state":"open","locked":false,"title":"Add using cookie middleware without identity","user":{"login":"blowdart","id":796298,"avatar_url":"https://avatars.githubusercontent.com/u/796298?v=3","gravatar_id":"","url":"https://api.github.com/users/blowdart","html_url":"https://github.com/blowdart","followers_url":"https://api.github.com/users/blowdart/followers","following_url":"https://api.github.com/users/blowdart/following{/other_user}","gists_url":"https://api.github.com/users/blowdart/gists{/gist_id}","starred_url":"https://api.github.com/users/blowdart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowdart/subscriptions","organizations_url":"https://api.github.com/users/blowdart/orgs","repos_url":"https://api.github.com/users/blowdart/repos","events_url":"https://api.github.com/users/blowdart/events{/privacy}","received_events_url":"https://api.github.com/users/blowdart/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-10T20:02:13Z","updated_at":"2015-12-14T23:13:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b798e785c271786eb467538866efd3db628db7af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Docs/pulls/783/commits","review_comments_url":"https://api.github.com/repos/aspnet/Docs/pulls/783/comments","review_comment_url":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/783/comments","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/6a7eb6ac683e297001663e12fcde31a554521153","head":{"label":"aspnet:blowdart/misc","ref":"blowdart/misc","sha":"6a7eb6ac683e297001663e12fcde31a554521153","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":28239455,"name":"Docs","full_name":"aspnet/Docs","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Docs","description":"Documentation for ASP.NET 5","fork":false,"url":"https://api.github.com/repos/aspnet/Docs","forks_url":"https://api.github.com/repos/aspnet/Docs/forks","keys_url":"https://api.github.com/repos/aspnet/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Docs/teams","hooks_url":"https://api.github.com/repos/aspnet/Docs/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Docs/events","assignees_url":"https://api.github.com/repos/aspnet/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Docs/tags","blobs_url":"https://api.github.com/repos/aspnet/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Docs/languages","stargazers_url":"https://api.github.com/repos/aspnet/Docs/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Docs/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Docs/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Docs/subscription","commits_url":"https://api.github.com/repos/aspnet/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Docs/merges","archive_url":"https://api.github.com/repos/aspnet/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Docs/downloads","issues_url":"https://api.github.com/repos/aspnet/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Docs/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Docs/releases{/id}","created_at":"2014-12-19T17:38:02Z","updated_at":"2015-12-13T04:04:01Z","pushed_at":"2015-12-14T22:56:56Z","git_url":"git://github.com/aspnet/Docs.git","ssh_url":"git@github.com:aspnet/Docs.git","clone_url":"https://github.com/aspnet/Docs.git","svn_url":"https://github.com/aspnet/Docs","homepage":null,"size":36669,"stargazers_count":307,"watchers_count":307,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":454,"mirror_url":null,"open_issues_count":169,"forks":454,"open_issues":169,"watchers":307,"default_branch":"master"}},"base":{"label":"aspnet:master","ref":"master","sha":"f2ad7b69737e1ce60f83c5888f77852de438f6b9","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":28239455,"name":"Docs","full_name":"aspnet/Docs","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Docs","description":"Documentation for ASP.NET 5","fork":false,"url":"https://api.github.com/repos/aspnet/Docs","forks_url":"https://api.github.com/repos/aspnet/Docs/forks","keys_url":"https://api.github.com/repos/aspnet/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Docs/teams","hooks_url":"https://api.github.com/repos/aspnet/Docs/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Docs/events","assignees_url":"https://api.github.com/repos/aspnet/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Docs/tags","blobs_url":"https://api.github.com/repos/aspnet/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Docs/languages","stargazers_url":"https://api.github.com/repos/aspnet/Docs/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Docs/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Docs/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Docs/subscription","commits_url":"https://api.github.com/repos/aspnet/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Docs/merges","archive_url":"https://api.github.com/repos/aspnet/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Docs/downloads","issues_url":"https://api.github.com/repos/aspnet/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Docs/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Docs/releases{/id}","created_at":"2014-12-19T17:38:02Z","updated_at":"2015-12-13T04:04:01Z","pushed_at":"2015-12-14T22:56:56Z","git_url":"git://github.com/aspnet/Docs.git","ssh_url":"git@github.com:aspnet/Docs.git","clone_url":"https://github.com/aspnet/Docs.git","svn_url":"https://github.com/aspnet/Docs","homepage":null,"size":36669,"stargazers_count":307,"watchers_count":307,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":454,"mirror_url":null,"open_issues_count":169,"forks":454,"open_issues":169,"watchers":307,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/783"},"html":{"href":"https://github.com/aspnet/Docs/pull/783"},"issue":{"href":"https://api.github.com/repos/aspnet/Docs/issues/783"},"comments":{"href":"https://api.github.com/repos/aspnet/Docs/issues/783/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/783/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/783/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Docs/statuses/6a7eb6ac683e297001663e12fcde31a554521153"}}}}