{"id":210316,"date":"2014-01-28T06:48:03","date_gmt":"2014-01-28T02:48:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210316"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210316","title":{"rendered":"<span class=\"post_title\">Nginx + Google-authenticator \u0438\u043b\u0438 \u043d\u0435 \u0432\u0441\u0435 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e\u2026<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 nginx \u043d\u0430 \u0431\u0430\u0437\u0435 google \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0445 \u043f\u0430\u0440\u043e\u043b\u0435\u0439.<\/p>\n<p>  \u041f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 auth_basic \u0438 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438, \u043d\u0435\u0441\u0435\u043a\u0443\u0440\u043d\u043e \u0438 \u0432\u0441\u0435 \u0442\u0443\u0442.<br \/>  \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u043d\u043e\u0433\u043e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0437\u043d\u0430\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>  \u041f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 Nginx (http_auth_request_module) + Apache (google-authenticator-apache-module).<\/p>\n<p>  \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043f\u043e\u0434\u043d\u044f\u043b, \u043d\u043e \u043d\u0435 \u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0435\u0449\u0435 \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f. <\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b42\/25d\/135\/b4225d135ae55e8aee1411a449606ced.png\"\/><\/p>\n<p>  \u0418\u0434\u0435\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c nginx \u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 apache. Nginx \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u043f\u043e\u0434\u0437\u0430\u043f\u0440\u043e\u0441 auth_request \u043d\u0430 &#8216;\u0421\u0435\u0440\u0432\u0435\u0440 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438&#8217; apache, \u0435\u0441\u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 apache \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 HTTP 200, \u0438 nginx \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u043e\u0448\u0435\u043b.<\/p>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u0430 &#8216;\u0421\u0435\u0440\u0432\u0435\u0440\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438&#8217; \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u0444\u0430\u0439\u043b(\u0418\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u2014 \u043b\u043e\u0433\u0438\u043d) \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043a\u0438\u0439 secure key.<br \/>  \u041d\u0435 \u0432\u0434\u0430\u0432\u0430\u044f\u0441\u044c \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0442\u043e \u043d\u0430 \u0431\u0430\u0437\u0435 \u044d\u0442\u043e\u0433\u043e secure key \u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430, \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u043e\u043b\u0438.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f: <\/p>\n<p>  <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.apps.authenticator2&amp;hl=ru\">Google Authenticator for Android<\/a>. <br \/>  <a href=\"https:\/\/itunes.apple.com\/us\/app\/google-authenticator\/id388497605?mt=8\">Google Authenticator for iOS<\/a>. <br \/>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e\u0434 Windows: <br \/>  <a href=\"https:\/\/code.google.com\/p\/gauth4win\/\">Google Authenticator for Windows<\/a>. <br \/>  \u0422\u0430\u043c\u0436\u0435 \u0435\u0441\u0442\u044c \u0438 \u043f\u043e\u0434 java\u2026<\/p>\n<p>  \u041a\u0430\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435, \u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u0447\u0442\u043e \u0436\u0435 \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u043e\u0434 Nginx \u043d\u0435\u0442\u0443 \u0438 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437-\u0437\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Nginx. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e\u0447\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u043c\u043e\u0433\u0443, \u043d\u043e \u043c\u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430 \u043f\u0440\u043e state mashine \u0438 \u0442\u0434\u2026 \ud83d\ude42<\/p>\n<p>  \u041d\u043e \u043f\u043e\u0434 Apache \u043c\u043e\u0434\u0443\u043b\u044c \u0435\u0441\u0442\u044c!!! \u0417\u043e\u0432\u0435\u0442\u0441\u044f <a href=\"https:\/\/code.google.com\/p\/google-authenticator-apache-module\/\">google-authenticator-apache-module<\/a><\/p>\n<p>  \u0422\u0430\u043c \u0435\u0441\u0442\u044c \u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043e\u0434 centsOS 6 \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b. \u0415\u0441\u0442\u044c \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0438 \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u0432\u0435\u0436\u0435\u0435 \u0432 \u0440\u0435\u043f\u043e. \u042f \u043f\u043e\u0438\u0433\u0440\u0430\u043b\u0441\u044f \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u043e\u0431\u0440\u0430\u043b \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p>  \u0417\u043d\u0430\u0447\u0438\u0442 \u0442\u0430\u043a \u043d\u0430 apache + google-authenticator-apache-module \u0434\u0435\u043b\u0430\u0435\u043c \u00ab\u0441\u0435\u0440\u0432\u0435\u0440 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\u00bb (\u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 2 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438) \u0438 \u043a \u043d\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c Nginx_\u044b \u043d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0433\u0434\u0435 \u043d\u0430\u043c \u043d\u0430\u0434\u043e. <\/p>\n<p>  \u0418\u0442\u0430\u043a \u0431\u0435\u0440\u0435\u043c apache2, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u043b\u0438 \u0431\u0435\u0440\u0435\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c google-authenticator-apache-module.<\/p>\n<p>  \u0438 \u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<pre><code class=\"apache\">Loadmodule authn_google_module  modules\/mod_authn_google.so Listen *:8888  &lt;Location ~ &quot;\/(|_auth\/)&quot; &gt; # \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0442\u0438 \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0441\u0442\u043e\u044f\u0442 Nginx_\u044b. \u042f \u0435\u0449\u0435 \u0438 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u043e\u043c \u043f\u0440\u0438\u043a\u0440\u044b\u043b \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 :)    Order deny,allow    Deny from all    Allow from 10.0.0.0\/8    Allow from 192.168.0.0\/24     AuthType Basic    AuthName &quot;My Closed Zone  Gauth&quot;    AuthBasicProvider &quot;google_authenticator&quot;    Require valid-user    GoogleAuthUserPath \/etc\/httpd\/ga_auth    GoogleAuthCookieLife 600    GoogleAuthEntryWindow 3    #  GoogleAuthLogLevel - \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.    GoogleAuthLogLevel 1 &lt;\/Location&gt; <\/code><\/pre>\n<p>  \u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c apache, \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432 \u044e\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043e\u0442\u0440\u044b\u0442\u044c \u0435\u0433\u043e \u2014 \u0435\u0441\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438? \u041f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e!!!<\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435\u2026<\/p>\n<p>  \/etc\/httpd\/ga_auth \u2014 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0444\u0430\u0439\u043b\u044b \u0441 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. <\/p>\n<p>  \u041a\u0430\u043a \u0438 \u0447\u0435\u043c \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c: <b>google-authenticator<\/b><\/p>\n<p>  \u041a\u0430\u0447\u0430\u0435\u043c, <a href=\"https:\/\/google-authenticator.googlecode.com\/files\/libpam-google-authenticator-1.0-source.tar.bz2\">libpam-google-authenticator<\/a>, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c google-authenticator. \u0412\u043e\u0442 \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e.<\/p>\n<p>  \u042f \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u0447\u0442\u043e\u0431 \u0444\u0430\u0439\u043b \u043b\u043e\u0436\u0438\u043b\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e.<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash \/usr\/bin\/google-authenticator -t -D -f -l$1@mydomain.com -r3 -R600 -s \/etc\/httpd\/ga_auth\/$1 -w2 \/bin\/chown apache:apache  \/etc\/httpd\/ga_auth\/$1 <\/code><\/pre>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043b\u043e\u0433\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  \u041e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0438 \u0432\u044b\u0434\u0430\u0441\u0442 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c:<\/p>\n<pre><code class=\"bash\">https:\/\/www.google.com\/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth:\/\/totp\/zzzz@mydomain.auth%3Fsecret%3DQYYY34XXXX534A4QA Your new secret key is: DQYYY34XXXX534A4QA Your verification code is 123456 Your emergency scratch codes are:   99942105   28654999   45999608   33300650   99907825 <\/code><\/pre>\n<p>  \u0432 \u0444\u0430\u0439\u043b \/etc\/httpd\/ga_auth\/_user_login_ \u043f\u0440\u0438\u0448\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 google-authenticator-apache-module \u043a\u0440\u043e\u043c\u0435 \u00abYour new secret key is:\u00bb, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u043c\u0435\u0440\u0435 \u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u2014 \u043d\u0438\u0447\u0435\u0433\u043e\u2026 \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 QUCFKE6AK3PBA4QA \u0430 \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0442\u044c \u0444\u0430\u0439\u043b.<\/p>\n<p>  \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 <a href=\"https:\/\/www.google.com\/chart?chs=200x200&amp;chld=M|0&amp;cht=qr&amp;chl=otpauth:\/\/totp\/zzzz@mydomain.auth%3Fsecret%3DQYYY34XXXX534A4QA\">https:\/\/www.google.com\/chart?chs=200&#215;200&#038;chld=M|0&#038;cht=qr&#038;chl=otpauth:\/\/totp\/zzzz@mydomain.auth%3Fsecret%3DQYYY34XXXX534A4QA<\/a><br \/>  (\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043a\u0440\u0438\u0432\u0430\u044f)<br \/>  \u0438 \u0432\u0438\u0434\u0438\u043c<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/3ba\/5b7\/c5d\/3ba5b7c5dbfb7c22007cfb2b279736de.png\"\/><\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d (\u0435\u0441\u043b\u0438 \u043f\u043e\u043a\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438) <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.apps.authenticator2&amp;hl=ru\">Google Authenticator<\/a>. \u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u043c QR \u043a\u043e\u0434, \u0438 \u0432\u0441\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>  \u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 apache, \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0430\u0442\u044c 404 \u2014 \u0442.\u043a. \u043f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 apache \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c index.html \u0430 \u0435\u0433\u043e \u0443 \u0432\u0430\u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435\u0442.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438 google-authenticator-apache-module \u043c\u043e\u0434\u0443\u043b\u044c \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u0438\u0448\u0435\u0442 \u0432 \/var\/log\/httpd\/error_log.<\/p>\n<p>  \u0418 \u0442\u0430\u043a, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u00ab\u0441\u0435\u0440\u0432\u0435\u0440 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\u00bb \u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u2014 \u043e\u0431\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0445 \u043f\u0430\u0440\u043e\u043b\u0435\u0439.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 nginx.<\/p>\n<p>  \u0431\u0435\u0440\u0435\u043c Nginx \u043f\u043e\u0441\u0432\u0435\u0436\u0435\u0435, \u044f \u0432\u0437\u044f\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 <i>1.5.7<\/i>, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0441 <i>&#8212;with-http_auth_request_module<\/i> (http_auth_request_module \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442).<\/p>\n<pre><code class=\"nginx\">        auth_request_set $auth_cookie $upstream_http_set_cookie;         add_header Set-Cookie $auth_cookie;           location  = \/_auth\/ {            internal;                 proxy_pass http:\/\/gauth_pool\/;                 proxy_pass_request_body off;                 proxy_buffering off;                 proxy_cache off;                 proxy_set_header Content-Length &quot;&quot;;                 proxy_set_header Host mydomain.com;         }  <\/code><\/pre>\n<p>  \u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u044d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438 \u0431\u0443\u0434\u0443 include \u0442\u0430\u043c \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u0432 \/etc\/nginx\/nginx.conf \u0432 \u043a\u043e\u043d\u0446\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 apache + \u0445\u043e\u0442\u044f \u0431\u044b 2 \u0434\u043b\u044f \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"nginx\">upstream  gauth_pool  {         server ga1.mydomain.com:8888 weight=1;         server ga2.mydomain.com:8888 weight=5; }  <\/code><\/pre>\n<p>  \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u0437\u0434\u0435 \u0433\u0434\u0435 \u043d\u0430\u0434\u043e \u0434\u043b\u044f Nginx \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<pre><code class=\"nginx\"> server {         listen 443 ssl spdy; #       listen 80;          server_name www.mydomain.com;          satisfy  any;         include   \/etc\/nginx\/allow_nets.txt;         deny  all;         auth_request \/_auth\/;          include location_auth.conf;  <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \ud83d\ude42<\/p>\n<p>  \/etc\/nginx\/allow_nets.txt \u2014 \u0441\u043f\u0438\u0441\u043e\u043a IP \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0435 \u043d\u0430\u0434\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0414\u0443\u043c\u0430\u044e \u043d\u0435 \u043d\u0430\u0434\u043e \u0432\u0441\u0435\u0445 \u043c\u0443\u0447\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u2014 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438:<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. <\/p>\n<p>  \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c. \u041f\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0430\u0448\u0435\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u0443\u043a\u0438<br \/>  <code>set-cookie: google_authn=user:1390714695:FRxZCSDzox\/a5KEGXXXXXXX5TYGIYZrRf=<\/code><\/p>\n<p>  \u041e\u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f, 1390714695 \u2014 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u0442\u0435\u043a\u0430\u0435\u0442 \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u0443\u043a\u0438. \u041e\u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f + {GoogleAuthCookieLife 600} \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 apache. \u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0431\u0435\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0435. \u043e\u0442\u043e\u0448\u043b\u0438 \u043d\u0430 10 \u043c\u0438\u043d\u0443\u0442 \u2014 \u0437\u0430\u043d\u043e\u0432\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0439\u0442\u0435\u0441\u044c.<\/p>\n<p>  \u0418 \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u0412\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435 \u0432\u0435\u0447\u043d\u043e. \u0412\u043e\u043e\u0431\u0449\u0435 \u0441\u0440\u043e\u043a \u0435\u043c\u0443 1 \u043c\u0438\u043d\u0443\u0442\u0430 \u0438 \u0432\u0441\u0435. \u041d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <br \/>  GoogleAuthEntryWindow 3, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u00ab\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u043e\u043a\u043d\u043e\u00bb \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u0435\u0439. <br \/>  \u0421\u043c\u044b\u0441\u043b \u0432 \u0442\u043e\u043c \u0447\u0442\u043e google-authenticator-apache-module \u043c\u043e\u0436\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f, \u043f\u0430\u0440\u043e\u043b\u0438 \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 GoogleAuthEntryWindow, \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0447\u0430\u0441\u044b \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u0438 \u0447\u0430\u0441\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u2014 \u0432\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0441\u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u0442\u044c\u0441\u044f. <\/p>\n<p>  \u042d\u0442\u043e \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e\u0431 \u0432\u0430\u0448 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e, \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u0434\u043e\u043b\u044c\u0448\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u00ab\u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043e\u0439\u00bb;<\/p>\n<p>  \u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u043a\u0443\u0441\u043e\u043a \u043b\u043e\u0433\u0430 \u0438\u0437 apache:<\/p>\n<pre><code class=\"apache\">[Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] **** COOKIE AUTH at  T=1390714549, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] Cookie auth is DECLINED, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] **** PW AUTH at  T=1390714549  user  &quot;my_user&quot;, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] getUserSecret with username &quot;my_user&quot;, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] OPENING FILENAME \/etc\/httpd\/ga_auth\/my_user, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] Comparing Authentication   @ T=46017151 Code=475002 &quot;332994&quot; vs.  &quot;475002&quot;, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] Comparing Authentication   @ T=46017151 Code=87841 &quot;332994&quot; vs.  &quot;087841&quot;, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] Comparing Authentication   @ T=46017151 Code=627132 &quot;332994&quot; vs.  &quot;627132&quot;, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] Comparing Authentication   @ T=46017151 Code=332994 &quot;332994&quot; vs.  &quot;332994&quot;, referer: https:\/\/www.mydomain.com\/ [Sun Jan 20 09:01:49 2014] [error] [client 1.2.3.4] Created cookie expires 1390715149 hash is sEFQLm92bSI= Cookie: google_authn=my_user:1390715149:sEFQLm92bSI=, referer: https:\/\/www.mydomain.com\/  <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0438\u043f\u0430<br \/>  <code>Comparing Authentication   @ T=46017151 Code=87841 &quot;332994&quot; vs. <\/code><br \/>  \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0432\u0430\u0448\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c, \u0438 \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443 \u2014 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u043d\u043e\u0432\u043e\u0439.    \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\/210316\/\"> http:\/\/habrahabr.ru\/post\/210316\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 nginx \u043d\u0430 \u0431\u0430\u0437\u0435 google \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0445 \u043f\u0430\u0440\u043e\u043b\u0435\u0439.<\/p>\n<p>  \u041f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 auth_basic \u0438 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u0430\u0440\u043e\u043b\u044f\u043c\u0438, \u043d\u0435\u0441\u0435\u043a\u0443\u0440\u043d\u043e \u0438 \u0432\u0441\u0435 \u0442\u0443\u0442.<br \/>  \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u043d\u043e\u0433\u043e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0437\u043d\u0430\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>  \u041f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 Nginx (http_auth_request_module) + Apache (google-authenticator-apache-module).<\/p>\n<p>  \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043f\u043e\u0434\u043d\u044f\u043b, \u043d\u043e \u043d\u0435 \u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0435\u0449\u0435 \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f. <\/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-210316","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210316","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=210316"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210316\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}