{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/comments/39237054","id":39237054,"diff_hunk":"@@ -0,0 +1,62 @@\n+﻿/*\n+ * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n+ * See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers\n+ * for more information concerning the license and the contributors participating to this project.\n+ */\n+\n+using Microsoft.AspNet.Authentication.OAuth;\n+using Microsoft.AspNet.Http;\n+using System;\n+\n+namespace AspNet.Security.OAuth.BattleNet {\n+    /// <summary>\n+    /// Defines a set of options used by <see cref=\"BattleNetAuthenticationHandler\"/>.\n+    /// </summary>\n+    public class BattleNetAuthenticationOptions : OAuthAuthenticationOptions {\n+        public BattleNetAuthenticationOptions() {\n+            AuthenticationScheme = BattleNetAuthenticationDefaults.AuthenticationScheme;\n+            Caption = BattleNetAuthenticationDefaults.Caption;\n+            ClaimsIssuer = BattleNetAuthenticationDefaults.Issuer;\n+\n+            CallbackPath = new PathString(BattleNetAuthenticationDefaults.CallbackPath);\n+\n+            this.SetServerRegion(ServerRegion.US); //Default to US\n+\n+            UserInformationEndpoint = BattleNetAuthenticationDefaults.UserInformationEndpoint;\n+\n+            SaveTokensAsClaims = false;\n+        }\n+\n+        public void SetServerRegion(ServerRegion serverRegion) {","path":"src/AspNet.Security.OAuth.BattleNet/BattleNetAuthenticationOptions.cs","position":30,"original_position":30,"commit_id":"a6acab627765e0201a983f83791161a069621e5f","original_commit_id":"a6acab627765e0201a983f83791161a069621e5f","user":{"login":"jerriep","id":1006420,"avatar_url":"https://avatars.githubusercontent.com/u/1006420?v=3","gravatar_id":"","url":"https://api.github.com/users/jerriep","html_url":"https://github.com/jerriep","followers_url":"https://api.github.com/users/jerriep/followers","following_url":"https://api.github.com/users/jerriep/following{/other_user}","gists_url":"https://api.github.com/users/jerriep/gists{/gist_id}","starred_url":"https://api.github.com/users/jerriep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerriep/subscriptions","organizations_url":"https://api.github.com/users/jerriep/orgs","repos_url":"https://api.github.com/users/jerriep/repos","events_url":"https://api.github.com/users/jerriep/events{/privacy}","received_events_url":"https://api.github.com/users/jerriep/received_events","type":"User","site_admin":false},"body":"Yes, you are correct.","created_at":"2015-09-11T02:41:54Z","updated_at":"2015-09-11T02:41:54Z","html_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/42#discussion_r39237054","pull_request_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/comments/39237054"},"html":{"href":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/42#discussion_r39237054"},"pull_request":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42","id":44632606,"html_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/42","diff_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/42.diff","patch_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/42.patch","issue_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/42","number":42,"state":"open","locked":false,"title":"Battle.net provider","user":{"login":"Gekctek","id":1934953,"avatar_url":"https://avatars.githubusercontent.com/u/1934953?v=3","gravatar_id":"","url":"https://api.github.com/users/Gekctek","html_url":"https://github.com/Gekctek","followers_url":"https://api.github.com/users/Gekctek/followers","following_url":"https://api.github.com/users/Gekctek/following{/other_user}","gists_url":"https://api.github.com/users/Gekctek/gists{/gist_id}","starred_url":"https://api.github.com/users/Gekctek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gekctek/subscriptions","organizations_url":"https://api.github.com/users/Gekctek/orgs","repos_url":"https://api.github.com/users/Gekctek/repos","events_url":"https://api.github.com/users/Gekctek/events{/privacy}","received_events_url":"https://api.github.com/users/Gekctek/received_events","type":"User","site_admin":false},"body":"aspnet-contrib/AspNet.Security.OAuth.Providers#2 Adds Battle.Net provider","created_at":"2015-09-10T06:38:35Z","updated_at":"2015-09-11T02:41:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5bff5a1c835b2959db662a291ea4b0f04acbf71","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42/commits","review_comments_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42/comments","review_comment_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/42/comments","statuses_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/statuses/a6acab627765e0201a983f83791161a069621e5f","head":{"label":"Gekctek:Battle.Net_Provider","ref":"Battle.Net_Provider","sha":"a6acab627765e0201a983f83791161a069621e5f","user":{"login":"Gekctek","id":1934953,"avatar_url":"https://avatars.githubusercontent.com/u/1934953?v=3","gravatar_id":"","url":"https://api.github.com/users/Gekctek","html_url":"https://github.com/Gekctek","followers_url":"https://api.github.com/users/Gekctek/followers","following_url":"https://api.github.com/users/Gekctek/following{/other_user}","gists_url":"https://api.github.com/users/Gekctek/gists{/gist_id}","starred_url":"https://api.github.com/users/Gekctek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gekctek/subscriptions","organizations_url":"https://api.github.com/users/Gekctek/orgs","repos_url":"https://api.github.com/users/Gekctek/repos","events_url":"https://api.github.com/users/Gekctek/events{/privacy}","received_events_url":"https://api.github.com/users/Gekctek/received_events","type":"User","site_admin":false},"repo":{"id":42125034,"name":"AspNet.Security.OAuth.Providers","full_name":"Gekctek/AspNet.Security.OAuth.Providers","owner":{"login":"Gekctek","id":1934953,"avatar_url":"https://avatars.githubusercontent.com/u/1934953?v=3","gravatar_id":"","url":"https://api.github.com/users/Gekctek","html_url":"https://github.com/Gekctek","followers_url":"https://api.github.com/users/Gekctek/followers","following_url":"https://api.github.com/users/Gekctek/following{/other_user}","gists_url":"https://api.github.com/users/Gekctek/gists{/gist_id}","starred_url":"https://api.github.com/users/Gekctek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gekctek/subscriptions","organizations_url":"https://api.github.com/users/Gekctek/orgs","repos_url":"https://api.github.com/users/Gekctek/repos","events_url":"https://api.github.com/users/Gekctek/events{/privacy}","received_events_url":"https://api.github.com/users/Gekctek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gekctek/AspNet.Security.OAuth.Providers","description":"OAuth2 authentication middleware for ASP.NET 5","fork":true,"url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers","forks_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/forks","keys_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/teams","hooks_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/hooks","issue_events_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/issues/events{/number}","events_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/events","assignees_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/assignees{/user}","branches_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/branches{/branch}","tags_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/tags","blobs_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/statuses/{sha}","languages_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/languages","stargazers_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/stargazers","contributors_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/contributors","subscribers_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/subscribers","subscription_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/subscription","commits_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/contents/{+path}","compare_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/merges","archive_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/downloads","issues_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/issues{/number}","pulls_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/pulls{/number}","milestones_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/milestones{/number}","notifications_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/labels{/name}","releases_url":"https://api.github.com/repos/Gekctek/AspNet.Security.OAuth.Providers/releases{/id}","created_at":"2015-09-08T16:33:48Z","updated_at":"2015-09-10T04:27:56Z","pushed_at":"2015-09-10T22:27:20Z","git_url":"git://github.com/Gekctek/AspNet.Security.OAuth.Providers.git","ssh_url":"git@github.com:Gekctek/AspNet.Security.OAuth.Providers.git","clone_url":"https://github.com/Gekctek/AspNet.Security.OAuth.Providers.git","svn_url":"https://github.com/Gekctek/AspNet.Security.OAuth.Providers","homepage":null,"size":674,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"aspnet-contrib:dev","ref":"dev","sha":"5f886c23dfa3543e503a4e290c5ee237d37d376e","user":{"login":"aspnet-contrib","id":7998081,"avatar_url":"https://avatars.githubusercontent.com/u/7998081?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet-contrib","html_url":"https://github.com/aspnet-contrib","followers_url":"https://api.github.com/users/aspnet-contrib/followers","following_url":"https://api.github.com/users/aspnet-contrib/following{/other_user}","gists_url":"https://api.github.com/users/aspnet-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet-contrib/subscriptions","organizations_url":"https://api.github.com/users/aspnet-contrib/orgs","repos_url":"https://api.github.com/users/aspnet-contrib/repos","events_url":"https://api.github.com/users/aspnet-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":34955518,"name":"AspNet.Security.OAuth.Providers","full_name":"aspnet-contrib/AspNet.Security.OAuth.Providers","owner":{"login":"aspnet-contrib","id":7998081,"avatar_url":"https://avatars.githubusercontent.com/u/7998081?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet-contrib","html_url":"https://github.com/aspnet-contrib","followers_url":"https://api.github.com/users/aspnet-contrib/followers","following_url":"https://api.github.com/users/aspnet-contrib/following{/other_user}","gists_url":"https://api.github.com/users/aspnet-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet-contrib/subscriptions","organizations_url":"https://api.github.com/users/aspnet-contrib/orgs","repos_url":"https://api.github.com/users/aspnet-contrib/repos","events_url":"https://api.github.com/users/aspnet-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers","description":"OAuth2 authentication middleware for ASP.NET 5","fork":false,"url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers","forks_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/forks","keys_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/teams","hooks_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/hooks","issue_events_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/events","assignees_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/tags","blobs_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/languages","stargazers_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/stargazers","contributors_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/contributors","subscribers_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/subscribers","subscription_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/subscription","commits_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/merges","archive_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/downloads","issues_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/labels{/name}","releases_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/releases{/id}","created_at":"2015-05-02T16:45:44Z","updated_at":"2015-09-09T20:42:45Z","pushed_at":"2015-09-10T22:27:20Z","git_url":"git://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers.git","ssh_url":"git@github.com:aspnet-contrib/AspNet.Security.OAuth.Providers.git","clone_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers.git","svn_url":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers","homepage":null,"size":674,"stargazers_count":18,"watchers_count":18,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":32,"forks":13,"open_issues":32,"watchers":18,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42"},"html":{"href":"https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/42"},"issue":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/42"},"comments":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OAuth.Providers/statuses/a6acab627765e0201a983f83791161a069621e5f"}}}}