{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/457","labels_url":"https://api.github.com/repos/aspnet/Security/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/457/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/457/events","html_url":"https://github.com/aspnet/Security/issues/457","id":106906704,"number":457,"title":"Make CookieAuthenticationDefaults and FacebookDefaults fields static readonly","user":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Security/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/Security/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-17T03:41:34Z","updated_at":"2015-09-18T18:12:38Z","closed_at":null,"body":"Many of them are currently `const`, which seems wrong."},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/141523161","html_url":"https://github.com/aspnet/Security/issues/457#issuecomment-141523161","issue_url":"https://api.github.com/repos/aspnet/Security/issues/457","id":141523161,"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},"created_at":"2015-09-18T18:12:38Z","updated_at":"2015-09-18T18:12:38Z","body":"The cookie middleware and the FB provider are not the only ones using constants: Google, JWT/Bearer, MSFT, OIDC, Twitter also all use constants.\r\n\r\nI'm not saying constants are more appropriate, but they have at least one merit for the default schemes: you can use them with `AuthorizeAttribute`:\r\n\r\n```csharp\r\n[Authorize(ActiveAuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]\r\n```"}}