{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/comments/46679727","id":46679727,"diff_hunk":"@@ -0,0 +1,136 @@\n+Создание собственных клиентов аутентификации\n+==============================\n+\n+Вы можете создать собственный клиент для любого внешнего сервиса аутентификации, который поддерживает протокол OpenId \n+или OAuth. Для этого, в первую очередь, необходимо выяснить, какой протокол поддерживает внешний сервис аутентификации, \n+что даст Вам имя базового класса для расширения:\n+\n+ - Для OAuth 2 используйте [[yii\\authclient\\OAuth2]].\n+ - Для OAuth 1/1.0a используйте [[yii\\authclient\\OAuth1]].\n+ - Для OpenID используйте [[yii\\authclient\\OpenId]].\n+\n+На данном этапе можно определить для клиента аутентификации базовые значения имени, заголовка и параметров ","path":"docs/guide-ru/creating-your-own-auth-clients.md","position":null,"original_position":12,"commit_id":"b2d6adfec24d087190ed4e49c506d956fe89a417","original_commit_id":"07861d84832fb6952dbcf30bb3391a9309a540a3","user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"body":"Окей, упростим предложение для сравнения\r\n\r\n`Мы определяем базовые значения, переопределяя методы.`\r\n\r\nили\r\n\r\n`Мы устанавливаем базовые значения, переопределяя методы.`\r\n\r\nМне больше нравится второе. А вам? ","created_at":"2015-12-04T13:10:32Z","updated_at":"2015-12-04T13:10:32Z","html_url":"https://github.com/yiisoft/yii2-authclient/pull/69#discussion_r46679727","pull_request_url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/comments/46679727"},"html":{"href":"https://github.com/yiisoft/yii2-authclient/pull/69#discussion_r46679727"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69","id":52652076,"html_url":"https://github.com/yiisoft/yii2-authclient/pull/69","diff_url":"https://github.com/yiisoft/yii2-authclient/pull/69.diff","patch_url":"https://github.com/yiisoft/yii2-authclient/pull/69.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/69","number":69,"state":"open","locked":false,"title":"Added Russian translations","user":{"login":"brussens","id":2656715,"avatar_url":"https://avatars.githubusercontent.com/u/2656715?v=3","gravatar_id":"","url":"https://api.github.com/users/brussens","html_url":"https://github.com/brussens","followers_url":"https://api.github.com/users/brussens/followers","following_url":"https://api.github.com/users/brussens/following{/other_user}","gists_url":"https://api.github.com/users/brussens/gists{/gist_id}","starred_url":"https://api.github.com/users/brussens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussens/subscriptions","organizations_url":"https://api.github.com/users/brussens/orgs","repos_url":"https://api.github.com/users/brussens/repos","events_url":"https://api.github.com/users/brussens/events{/privacy}","received_events_url":"https://api.github.com/users/brussens/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-12-04T10:24:30Z","updated_at":"2015-12-04T13:10:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e315b2025679cfb52c363516fe2091fe3a6c7fbc","assignee":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2-authclient/milestones/4","html_url":"https://github.com/yiisoft/yii2-authclient/milestones/2.0.6","labels_url":"https://api.github.com/repos/yiisoft/yii2-authclient/milestones/4/labels","id":1320799,"number":4,"title":"2.0.6","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-09-23T17:28:23Z","updated_at":"2015-12-04T10:35:07Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/69/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2-authclient/statuses/b2d6adfec24d087190ed4e49c506d956fe89a417","head":{"label":"brussens:master","ref":"master","sha":"b2d6adfec24d087190ed4e49c506d956fe89a417","user":{"login":"brussens","id":2656715,"avatar_url":"https://avatars.githubusercontent.com/u/2656715?v=3","gravatar_id":"","url":"https://api.github.com/users/brussens","html_url":"https://github.com/brussens","followers_url":"https://api.github.com/users/brussens/followers","following_url":"https://api.github.com/users/brussens/following{/other_user}","gists_url":"https://api.github.com/users/brussens/gists{/gist_id}","starred_url":"https://api.github.com/users/brussens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussens/subscriptions","organizations_url":"https://api.github.com/users/brussens/orgs","repos_url":"https://api.github.com/users/brussens/repos","events_url":"https://api.github.com/users/brussens/events{/privacy}","received_events_url":"https://api.github.com/users/brussens/received_events","type":"User","site_admin":false},"repo":{"id":47397187,"name":"yii2-authclient","full_name":"brussens/yii2-authclient","owner":{"login":"brussens","id":2656715,"avatar_url":"https://avatars.githubusercontent.com/u/2656715?v=3","gravatar_id":"","url":"https://api.github.com/users/brussens","html_url":"https://github.com/brussens","followers_url":"https://api.github.com/users/brussens/followers","following_url":"https://api.github.com/users/brussens/following{/other_user}","gists_url":"https://api.github.com/users/brussens/gists{/gist_id}","starred_url":"https://api.github.com/users/brussens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussens/subscriptions","organizations_url":"https://api.github.com/users/brussens/orgs","repos_url":"https://api.github.com/users/brussens/repos","events_url":"https://api.github.com/users/brussens/events{/privacy}","received_events_url":"https://api.github.com/users/brussens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brussens/yii2-authclient","description":"Yii 2 authclient extension.","fork":true,"url":"https://api.github.com/repos/brussens/yii2-authclient","forks_url":"https://api.github.com/repos/brussens/yii2-authclient/forks","keys_url":"https://api.github.com/repos/brussens/yii2-authclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brussens/yii2-authclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brussens/yii2-authclient/teams","hooks_url":"https://api.github.com/repos/brussens/yii2-authclient/hooks","issue_events_url":"https://api.github.com/repos/brussens/yii2-authclient/issues/events{/number}","events_url":"https://api.github.com/repos/brussens/yii2-authclient/events","assignees_url":"https://api.github.com/repos/brussens/yii2-authclient/assignees{/user}","branches_url":"https://api.github.com/repos/brussens/yii2-authclient/branches{/branch}","tags_url":"https://api.github.com/repos/brussens/yii2-authclient/tags","blobs_url":"https://api.github.com/repos/brussens/yii2-authclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brussens/yii2-authclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brussens/yii2-authclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/brussens/yii2-authclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brussens/yii2-authclient/statuses/{sha}","languages_url":"https://api.github.com/repos/brussens/yii2-authclient/languages","stargazers_url":"https://api.github.com/repos/brussens/yii2-authclient/stargazers","contributors_url":"https://api.github.com/repos/brussens/yii2-authclient/contributors","subscribers_url":"https://api.github.com/repos/brussens/yii2-authclient/subscribers","subscription_url":"https://api.github.com/repos/brussens/yii2-authclient/subscription","commits_url":"https://api.github.com/repos/brussens/yii2-authclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/brussens/yii2-authclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/brussens/yii2-authclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/brussens/yii2-authclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/brussens/yii2-authclient/contents/{+path}","compare_url":"https://api.github.com/repos/brussens/yii2-authclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brussens/yii2-authclient/merges","archive_url":"https://api.github.com/repos/brussens/yii2-authclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brussens/yii2-authclient/downloads","issues_url":"https://api.github.com/repos/brussens/yii2-authclient/issues{/number}","pulls_url":"https://api.github.com/repos/brussens/yii2-authclient/pulls{/number}","milestones_url":"https://api.github.com/repos/brussens/yii2-authclient/milestones{/number}","notifications_url":"https://api.github.com/repos/brussens/yii2-authclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brussens/yii2-authclient/labels{/name}","releases_url":"https://api.github.com/repos/brussens/yii2-authclient/releases{/id}","created_at":"2015-12-04T10:22:37Z","updated_at":"2015-12-04T10:22:39Z","pushed_at":"2015-12-04T13:05:44Z","git_url":"git://github.com/brussens/yii2-authclient.git","ssh_url":"git@github.com:brussens/yii2-authclient.git","clone_url":"https://github.com/brussens/yii2-authclient.git","svn_url":"https://github.com/brussens/yii2-authclient","homepage":"http://www.yiiframework.com","size":292,"stargazers_count":1,"watchers_count":1,"language":"PHP","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":1,"default_branch":"master"}},"base":{"label":"yiisoft:master","ref":"master","sha":"1a748a8f0223361f68d53f02d7cfa4d91be522b6","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":15465350,"name":"yii2-authclient","full_name":"yiisoft/yii2-authclient","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2-authclient","description":"Yii 2 authclient extension.","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2-authclient","forks_url":"https://api.github.com/repos/yiisoft/yii2-authclient/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2-authclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2-authclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2-authclient/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2-authclient/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2-authclient/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2-authclient/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2-authclient/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2-authclient/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2-authclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2-authclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2-authclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2-authclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2-authclient/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2-authclient/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2-authclient/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2-authclient/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2-authclient/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2-authclient/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2-authclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2-authclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2-authclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2-authclient/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2-authclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2-authclient/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2-authclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2-authclient/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2-authclient/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2-authclient/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2-authclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2-authclient/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2-authclient/releases{/id}","created_at":"2013-12-27T03:10:24Z","updated_at":"2015-12-04T12:44:08Z","pushed_at":"2015-12-04T13:05:44Z","git_url":"git://github.com/yiisoft/yii2-authclient.git","ssh_url":"git@github.com:yiisoft/yii2-authclient.git","clone_url":"https://github.com/yiisoft/yii2-authclient.git","svn_url":"https://github.com/yiisoft/yii2-authclient","homepage":"http://www.yiiframework.com","size":970,"stargazers_count":96,"watchers_count":96,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":18,"forks":73,"open_issues":18,"watchers":96,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69"},"html":{"href":"https://github.com/yiisoft/yii2-authclient/pull/69"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/69"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2-authclient/statuses/b2d6adfec24d087190ed4e49c506d956fe89a417"}}}}