{"id":200812,"date":"2013-11-05T04:30:02","date_gmt":"2013-11-05T00:30:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=200812"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=200812","title":{"rendered":"<span class=\"post_title\">OAuth.io<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0445\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435. \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0445\u043e\u0440\u043e\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 .<\/p>\n<p>  <a href=\"https:\/\/oauth.io\/\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/9e4\/c6b\/ef9\/9e4c6bef96d96e40e96501ca4bbe6c0f.jpg\"\/><\/a><br \/>  OAuth.io \u2014 \u044d\u0442\u043e API (<a href=\"https:\/\/github.com\/oauth-io\/oauth-js\">JavaScript<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-phonegap\">PhoneGap<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-ios\">iOS<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-android\">Android<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-flex\">Flex<\/a>) \u0438 \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0441 <a href=\"https:\/\/oauth.io\/providers\">80-\u044e oAuth \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438<\/a> (Facebook, Twitter, VK, GitHub, Dropbox, \u0438 \u0434\u0440). \u0421\u0435\u0440\u0432\u0438\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u043c\u043e\u0434\u0435\u043b\u0438 freemium: \u0434\u043e 5000 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0432 \u043c\u0435\u0441\u044f\u0446 \u0441\u0435\u0440\u0432\u0438\u0441 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0430\u0441 \u0436\u0434\u0443\u0442 <a href=\"https:\/\/oauth.io\/pricing\">\u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u0446\u0435\u043d\u044b<\/a>. \u0421\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 <b>\u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439<\/b> \u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 <b>\u0441\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0443 \u0441\u0435\u0431\u044f<\/b> \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u00abOAuth IO Daemon\u00bb (<a href=\"https:\/\/github.com\/oauth-io\/oauthd\">GitHub<\/a>).<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 OAuth.io: <\/h5>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/87e\/5c0\/d4b\/87e5c0d4bad998e544ebc0ca5034e278.png\" alt=\"image\"\/><\/p>\n<h5>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 Facebook, \u0434\u043e\u043c\u0435\u043d \u0438 URL \u0434\u043b\u044f callback \u0431\u0443\u0434\u0435\u0442 <code>oauth.io<\/code> \u0438 <code>https:\/\/oauth.io\/auth<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e:<\/h5>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f9e\/f0f\/9b4\/f9ef0f9b40cc24ea564d9d83ebd7ca13.png\" alt=\"image\"\/><\/p>\n<h5>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Facebook, \u0443\u043a\u0430\u0437\u0430\u0432 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 App ID \u0438 App Secret:<\/h5>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/823\/5ff\/e3a\/8235ffe3accd23a797604f135a0e640a.png\" alt=\"image\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418 \u0443\u0436\u0435 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/12e\/a4e\/e61\/12ea4ee61fdb08c1976566b9b3749d7c.jpg\"\/>  <\/div>\n<\/div>\n<h4>JavaScript<\/h4>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:  <\/p>\n<pre><code class=\"html\">&lt;script src=&quot;\/path\/to\/OAuth.js&quot;&gt;&lt;\/script&gt; <\/code><\/pre>\n<p>  \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:   <\/p>\n<pre><code class=\"javascript\">OAuth.initialize('Public key'); \/\/ \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0434\u0430\u0435\u0442 oAuth.io <\/code><\/pre>\n<p>  <b>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/b>:  <\/p>\n<h5>\u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e:<\/h5>\n<p>  <\/p>\n<pre><code class=\"javascript\">OAuth.popup('facebook', function(err, result) {   \/\/handle error with err   \/\/use result.access_token in your API request }); <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442:<\/h5>\n<p>  <\/p>\n<pre><code class=\"javascript\">\/\/Using redirection (option 2) OAuth.redirect('facebook', &quot;callback\/url&quot;);  OAuth.callback('facebook', function(err, result) {   \/\/handle error with err   \/\/use result.access_token in your API request }); <\/code><\/pre>\n<p>  <a href=\"http:\/\/oauth-io.github.io\/oauth-js\/\">\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440<\/a>      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/200812\/\"> http:\/\/habrahabr.ru\/post\/200812\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0445\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435. \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0445\u043e\u0440\u043e\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 .<\/p>\n<p>  <a href=\"https:\/\/oauth.io\/\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/9e4\/c6b\/ef9\/9e4c6bef96d96e40e96501ca4bbe6c0f.jpg\"\/><\/a><br \/>  OAuth.io \u2014 \u044d\u0442\u043e API (<a href=\"https:\/\/github.com\/oauth-io\/oauth-js\">JavaScript<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-phonegap\">PhoneGap<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-ios\">iOS<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-android\">Android<\/a>, <a href=\"https:\/\/github.com\/oauth-io\/oauth-flex\">Flex<\/a>) \u0438 \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0441 <a href=\"https:\/\/oauth.io\/providers\">80-\u044e oAuth \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438<\/a> (Facebook, Twitter, VK, GitHub, Dropbox, \u0438 \u0434\u0440). \u0421\u0435\u0440\u0432\u0438\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u043c\u043e\u0434\u0435\u043b\u0438 freemium: \u0434\u043e 5000 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0432 \u043c\u0435\u0441\u044f\u0446 \u0441\u0435\u0440\u0432\u0438\u0441 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439, \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0430\u0441 \u0436\u0434\u0443\u0442 <a href=\"https:\/\/oauth.io\/pricing\">\u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u0446\u0435\u043d\u044b<\/a>. \u0421\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 <b>\u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439<\/b> \u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 <b>\u0441\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0443 \u0441\u0435\u0431\u044f<\/b> \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u00abOAuth IO Daemon\u00bb (<a href=\"https:\/\/github.com\/oauth-io\/oauthd\">GitHub<\/a>).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-200812","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/200812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200812"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/200812\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}