{"action":"created","comment":{"url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/comments/35501930","id":35501930,"diff_hunk":"@@ -0,0 +1,135 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Net.Http;\n+using Microsoft.Owin;\n+using Microsoft.Owin.Security;\n+\n+namespace Owin.Security.Providers.Backlog\n+{\n+    public class BacklogAuthenticationOptions : AuthenticationOptions\n+    {\n+        private const string TempTokenEndpoint = \"https://contractname.backlog.jp/api/v2/oauth2/token\";\n+        private const string TempUserInfoEndpoint = \"https://contractname.backlog.jp/api/v2/users/myself\";\n+        private const string TempAuthorizationEndpoint = \"https://contractname.backlog.jp/OAuth2AccessRequest.action\";\n+\n+        /// <summary>\n+        ///     Gets or sets the a pinned certificate validator to use to validate the endpoints used\n+        ///     in back channel communications belong to Google+.\n+        /// </summary>\n+        /// <value>\n+        ///     The pinned certificate validator.\n+        /// </value>\n+        /// <remarks>\n+        ///     If this property is null then the default certificate checks are performed,\n+        ///     validating the subject name and if the signing chain is a trusted party.\n+        /// </remarks>\n+        public ICertificateValidator BackchannelCertificateValidator { get; set; }\n+\n+        /// <summary>\n+        ///     The HttpMessageHandler used to communicate with Google+.\n+        ///     This cannot be set at the same time as BackchannelCertificateValidator unless the value\n+        ///     can be downcast to a WebRequestHandler.\n+        /// </summary>\n+        public HttpMessageHandler BackchannelHttpHandler { get; set; }\n+\n+        /// <summary>\n+        ///     Gets or sets timeout value in milliseconds for back channel communications with Google+.\n+        /// </summary>\n+        /// <value>\n+        ///     The back channel timeout in milliseconds.\n+        /// </value>\n+        public TimeSpan BackchannelTimeout { get; set; }\n+\n+        /// <summary>\n+        ///     The request path within the application's base path where the user-agent will be returned.\n+        ///     The middleware will process this request when it arrives.\n+        ///     Default value is empty.\n+        /// </summary>\n+        public PathString CallbackPath { get; set; }\n+\n+        /// <summary>\n+        ///     Get or sets the text that the user can display on a sign in user interface.\n+        /// </summary>\n+        public string Caption\n+        {\n+            get { return Description.Caption; }\n+            set { Description.Caption = value; }\n+        }\n+\n+        /// <summary>\n+        ///     Gets or sets the Google supplied Client ID\n+        /// </summary>\n+        public string ClientId { get; set; }\n+\n+        /// <summary>\n+        ///     Gets or sets the Google supplied Client Secret\n+        /// </summary>\n+        public string ClientSecret { get; set; }\n+\n+        /// <summary>\n+        ///     Gets or sets the ContractName for Backlog.It's also subdomain at the url of service.ex: https://contractName.backlog.jp/\n+        /// </summary>\n+        public string ContractName { get; set; }\n+\n+\n+        public string TokenEndpoint\n+        {\n+            get\n+            {\n+                var ub = new UriBuilder(TempTokenEndpoint);\n+                ub.Host = ub.Host.Replace(\"contractname\", this.ContractName);\n+\n+                return ub.Uri.ToString();\n+            }\n+        }\n+\n+        public string UserInfoEndpoint\n+        {\n+            get\n+            {\n+                var ub = new UriBuilder(TempUserInfoEndpoint);\n+                ub.Host = ub.Host.Replace(\"contractname\", this.ContractName);\n+\n+                return ub.Uri.ToString();\n+            }\n+        }\n+\n+        public string AuthorizationEndpoint\n+        {\n+            get\n+            {\n+                var ub = new UriBuilder(TempAuthorizationEndpoint);\n+                ub.Host = ub.Host.Replace(\"contractname\", this.ContractName);\n+\n+                return ub.Uri.ToString();\n+            }\n+        }\n+\n+        /// <summary>\n+        ///     Gets or sets the <see cref=\"IBacklogAuthenticationProvider\" /> used in the authentication events\n+        /// </summary>\n+        public IBacklogAuthenticationProvider Provider { get; set; }\n+\n+        /// <summary>\n+        ///     Gets or sets the name of another authentication middleware which will be responsible for actually issuing a user\n+        ///     <see cref=\"System.Security.Claims.ClaimsIdentity\" />.\n+        /// </summary>\n+        public string SignInAsAuthenticationType { get; set; }\n+\n+        /// <summary>\n+        ///     Gets or sets the type used to secure data handled by the middleware.\n+        /// </summary>\n+        public ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; set; }\n+\n+        /// <summary>\n+        ///     Initializes a new <see cref=\"BacklogAuthenticationOptions\" />\n+        /// </summary>\n+        public BacklogAuthenticationOptions()","path":"Owin.Security.Providers/Backlog/BacklogAuthenticationOptions.cs","position":127,"original_position":127,"commit_id":"8313e164cf953315099c930cb426b900fbf7fbed","original_commit_id":"00ab4b4ccd53d1c7a8fabe94d862c99c6474b780","user":{"login":"takashi-uesaka","id":9815973,"avatar_url":"https://avatars.githubusercontent.com/u/9815973?v=3","gravatar_id":"","url":"https://api.github.com/users/takashi-uesaka","html_url":"https://github.com/takashi-uesaka","followers_url":"https://api.github.com/users/takashi-uesaka/followers","following_url":"https://api.github.com/users/takashi-uesaka/following{/other_user}","gists_url":"https://api.github.com/users/takashi-uesaka/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-uesaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-uesaka/subscriptions","organizations_url":"https://api.github.com/users/takashi-uesaka/orgs","repos_url":"https://api.github.com/users/takashi-uesaka/repos","events_url":"https://api.github.com/users/takashi-uesaka/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-uesaka/received_events","type":"User","site_admin":false},"body":"I added default value. Please check it out.","created_at":"2015-07-27T02:09:12Z","updated_at":"2015-07-27T02:09:12Z","html_url":"https://github.com/RockstarLabs/OwinOAuthProviders/pull/115#discussion_r35501930","pull_request_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/comments/35501930"},"html":{"href":"https://github.com/RockstarLabs/OwinOAuthProviders/pull/115#discussion_r35501930"},"pull_request":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115","id":40659903,"html_url":"https://github.com/RockstarLabs/OwinOAuthProviders/pull/115","diff_url":"https://github.com/RockstarLabs/OwinOAuthProviders/pull/115.diff","patch_url":"https://github.com/RockstarLabs/OwinOAuthProviders/pull/115.patch","issue_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues/115","number":115,"state":"open","locked":false,"title":"Add Backlog Provider","user":{"login":"takashi-uesaka","id":9815973,"avatar_url":"https://avatars.githubusercontent.com/u/9815973?v=3","gravatar_id":"","url":"https://api.github.com/users/takashi-uesaka","html_url":"https://github.com/takashi-uesaka","followers_url":"https://api.github.com/users/takashi-uesaka/followers","following_url":"https://api.github.com/users/takashi-uesaka/following{/other_user}","gists_url":"https://api.github.com/users/takashi-uesaka/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-uesaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-uesaka/subscriptions","organizations_url":"https://api.github.com/users/takashi-uesaka/orgs","repos_url":"https://api.github.com/users/takashi-uesaka/repos","events_url":"https://api.github.com/users/takashi-uesaka/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-uesaka/received_events","type":"User","site_admin":false},"body":"Backlog is ticket driven web service in Japan.","created_at":"2015-07-23T11:01:10Z","updated_at":"2015-07-27T02:09:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29aa3e2ebb5000921c066b3766d31df953664a4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115/commits","review_comments_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115/comments","review_comment_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues/115/comments","statuses_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/statuses/8313e164cf953315099c930cb426b900fbf7fbed","head":{"label":"takashi-uesaka:backlog","ref":"backlog","sha":"8313e164cf953315099c930cb426b900fbf7fbed","user":{"login":"takashi-uesaka","id":9815973,"avatar_url":"https://avatars.githubusercontent.com/u/9815973?v=3","gravatar_id":"","url":"https://api.github.com/users/takashi-uesaka","html_url":"https://github.com/takashi-uesaka","followers_url":"https://api.github.com/users/takashi-uesaka/followers","following_url":"https://api.github.com/users/takashi-uesaka/following{/other_user}","gists_url":"https://api.github.com/users/takashi-uesaka/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-uesaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-uesaka/subscriptions","organizations_url":"https://api.github.com/users/takashi-uesaka/orgs","repos_url":"https://api.github.com/users/takashi-uesaka/repos","events_url":"https://api.github.com/users/takashi-uesaka/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-uesaka/received_events","type":"User","site_admin":false},"repo":{"id":39558196,"name":"OwinOAuthProviders","full_name":"takashi-uesaka/OwinOAuthProviders","owner":{"login":"takashi-uesaka","id":9815973,"avatar_url":"https://avatars.githubusercontent.com/u/9815973?v=3","gravatar_id":"","url":"https://api.github.com/users/takashi-uesaka","html_url":"https://github.com/takashi-uesaka","followers_url":"https://api.github.com/users/takashi-uesaka/followers","following_url":"https://api.github.com/users/takashi-uesaka/following{/other_user}","gists_url":"https://api.github.com/users/takashi-uesaka/gists{/gist_id}","starred_url":"https://api.github.com/users/takashi-uesaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takashi-uesaka/subscriptions","organizations_url":"https://api.github.com/users/takashi-uesaka/orgs","repos_url":"https://api.github.com/users/takashi-uesaka/repos","events_url":"https://api.github.com/users/takashi-uesaka/events{/privacy}","received_events_url":"https://api.github.com/users/takashi-uesaka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takashi-uesaka/OwinOAuthProviders","description":null,"fork":true,"url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders","forks_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/forks","keys_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/teams","hooks_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/hooks","issue_events_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/issues/events{/number}","events_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/events","assignees_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/assignees{/user}","branches_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/branches{/branch}","tags_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/tags","blobs_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/git/refs{/sha}","trees_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/statuses/{sha}","languages_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/languages","stargazers_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/stargazers","contributors_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/contributors","subscribers_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/subscribers","subscription_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/subscription","commits_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/commits{/sha}","git_commits_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/git/commits{/sha}","comments_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/comments{/number}","issue_comment_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/issues/comments{/number}","contents_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/contents/{+path}","compare_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/merges","archive_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/downloads","issues_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/issues{/number}","pulls_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/pulls{/number}","milestones_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/milestones{/number}","notifications_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/labels{/name}","releases_url":"https://api.github.com/repos/takashi-uesaka/OwinOAuthProviders/releases{/id}","created_at":"2015-07-23T09:26:06Z","updated_at":"2015-07-23T09:26:07Z","pushed_at":"2015-07-24T07:31:00Z","git_url":"git://github.com/takashi-uesaka/OwinOAuthProviders.git","ssh_url":"git@github.com:takashi-uesaka/OwinOAuthProviders.git","clone_url":"https://github.com/takashi-uesaka/OwinOAuthProviders.git","svn_url":"https://github.com/takashi-uesaka/OwinOAuthProviders","homepage":null,"size":3835,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"RockstarLabs:master","ref":"master","sha":"12a129164d6cb4f2f6cbfe1f643cc192ce0421e9","user":{"login":"RockstarLabs","id":9345211,"avatar_url":"https://avatars.githubusercontent.com/u/9345211?v=3","gravatar_id":"","url":"https://api.github.com/users/RockstarLabs","html_url":"https://github.com/RockstarLabs","followers_url":"https://api.github.com/users/RockstarLabs/followers","following_url":"https://api.github.com/users/RockstarLabs/following{/other_user}","gists_url":"https://api.github.com/users/RockstarLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/RockstarLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockstarLabs/subscriptions","organizations_url":"https://api.github.com/users/RockstarLabs/orgs","repos_url":"https://api.github.com/users/RockstarLabs/repos","events_url":"https://api.github.com/users/RockstarLabs/events{/privacy}","received_events_url":"https://api.github.com/users/RockstarLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":14353016,"name":"OwinOAuthProviders","full_name":"RockstarLabs/OwinOAuthProviders","owner":{"login":"RockstarLabs","id":9345211,"avatar_url":"https://avatars.githubusercontent.com/u/9345211?v=3","gravatar_id":"","url":"https://api.github.com/users/RockstarLabs","html_url":"https://github.com/RockstarLabs","followers_url":"https://api.github.com/users/RockstarLabs/followers","following_url":"https://api.github.com/users/RockstarLabs/following{/other_user}","gists_url":"https://api.github.com/users/RockstarLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/RockstarLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockstarLabs/subscriptions","organizations_url":"https://api.github.com/users/RockstarLabs/orgs","repos_url":"https://api.github.com/users/RockstarLabs/repos","events_url":"https://api.github.com/users/RockstarLabs/events{/privacy}","received_events_url":"https://api.github.com/users/RockstarLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RockstarLabs/OwinOAuthProviders","description":null,"fork":false,"url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders","forks_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/forks","keys_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/teams","hooks_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/hooks","issue_events_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues/events{/number}","events_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/events","assignees_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/assignees{/user}","branches_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/branches{/branch}","tags_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/tags","blobs_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/git/refs{/sha}","trees_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/statuses/{sha}","languages_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/languages","stargazers_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/stargazers","contributors_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/contributors","subscribers_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/subscribers","subscription_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/subscription","commits_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/commits{/sha}","git_commits_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/git/commits{/sha}","comments_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/comments{/number}","issue_comment_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues/comments{/number}","contents_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/contents/{+path}","compare_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/merges","archive_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/downloads","issues_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues{/number}","pulls_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls{/number}","milestones_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/milestones{/number}","notifications_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/labels{/name}","releases_url":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/releases{/id}","created_at":"2013-11-13T03:43:06Z","updated_at":"2015-07-24T05:33:27Z","pushed_at":"2015-07-24T07:31:00Z","git_url":"git://github.com/RockstarLabs/OwinOAuthProviders.git","ssh_url":"git@github.com:RockstarLabs/OwinOAuthProviders.git","clone_url":"https://github.com/RockstarLabs/OwinOAuthProviders.git","svn_url":"https://github.com/RockstarLabs/OwinOAuthProviders","homepage":null,"size":3835,"stargazers_count":187,"watchers_count":187,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":21,"forks":100,"open_issues":21,"watchers":187,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115"},"html":{"href":"https://github.com/RockstarLabs/OwinOAuthProviders/pull/115"},"issue":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues/115"},"comments":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/RockstarLabs/OwinOAuthProviders/statuses/8313e164cf953315099c930cb426b900fbf7fbed"}}}}