{"id":304600,"date":"2020-05-31T21:00:42","date_gmt":"2020-05-31T21:00:42","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=304600"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=304600","title":{"rendered":"\u0421\u043a\u0430\u0437 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b Azure AD B2C \u043d\u0430 React \u0438 React Native \u0427\u0430\u0441\u0442\u044c 3 (\u0422\u0443\u0442\u043e\u0440\u0438\u0430\u043b)"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/504690\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hd\/t3\/3_\/hdt33_njadqtiqzzjijasdxhzfy.png\" alt=\"image\"><\/div>\n<p>  <\/p>\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0446\u0438\u043a\u043b\u0430 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Azure B2C. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043d\u0430 React JS.<\/p>\n<p>  <b>\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u044b<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/503890\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Azure AD B2C<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/504030\/\">\u0427\u0430\u0441\u0442\u044c 2: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Identity Framework Experience<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f React<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 4: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f React Native<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 5: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u044d\u043a\u044d\u043d\u0434\u0430 \u043d\u0430 .NET Core 3<\/li>\n<\/ul>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2><font color=\"#D03C31\">\u0428\u0410\u0413 1<\/font><\/h2>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/www.npmjs.com\/package\/react-aad-msal\" rel=\"nofollow\">react-aad-msal<\/a> <b>(npm i react-aad-msal)<\/b>.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <b>public<\/b> \u043f\u0443\u0441\u0442\u043e\u0439 \u0444\u0430\u0439\u043b <b>auth.html<\/b><\/p>\n<h2><font color=\"#D03C31\">\u0428\u0410\u0413 2<\/font><\/h2>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b <b>auth-provider.ts<\/b> \u0432 \u043f\u0430\u043f\u043a\u0435 <b>.\/src<\/b><\/p>\n<pre><code class=\"javascript\">  import { MsalAuthProvider, LoginType } from 'react-aad-msal';   import { Configuration } from 'msal\/lib-commonjs\/Configuration';      \/\/ Msal Configurations   export const config = (azurePolicy: string): Configuration =&gt; ({     auth: {       authority: `https:\/\/yourcompany.b2clogin.com\/yourcompany.onmicrosoft.com\/${azurePolicy}`, \/\/ azurePolicy = \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043e\u0431 \u044d\u0442\u043e\u043c \u0434\u0430\u043b\u044c\u0448\u0435)       validateAuthority: false,       clientId: '777aaa77a-7a77-7777-bb77-8888888aabc', \/\/ ClientID \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Azure AD B2C     },     cache: {       cacheLocation: 'localStorage',       storeAuthStateInCookie: false, \/\/ \u041b\u0443\u0447\u0448\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c false \u0438\u043d\u0430\u0447\u0435 \u043a\u0443\u043a\u0438\u0441\u044b \u0438\u043c\u0435\u044e\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0435 431     },   });      \/\/ Authentication Parameters   const authenticationParameters = {     scopes: [       'openid', 'profile',     ],   };      \/\/ Options   export const options = {     loginType: LoginType.Redirect,     tokenRefreshUri: `${window.location.origin}\/auth.html`,   };      export const authProvider = (customConfig: Configuration): MsalAuthProvider =&gt; new MsalAuthProvider(customConfig, authenticationParameters, options); <\/code><\/pre>\n<p>  <b>\u0413\u0434\u0435 \u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0438\u0442\u0438\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435<\/b><br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/-d\/bv\/nb\/-dbvnbzig1vatibisepcb9ekdxq.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-d\/bv\/nb\/-dbvnbzig1vatibisepcb9ekdxq.png\" alt=\"image\"><\/a><\/p>\n<h2><font color=\"#D03C31\">\u0428\u0410\u0413 3<\/font><\/h2>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 index.tsx \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"javascript\">  import * as React from 'react';   import * as ReactDOM from 'react-dom';   import { Provider } from 'react-redux';   import { AzureAD, AuthenticationState, IAzureADFunctionProps } from 'react-aad-msal';   import { authProvider, config } from '.\/auth-provider';   import App from '.\/App';    const store = configureStore();    const unauthenticatedFunction = () =&gt; (   \/\/ \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 &quot;\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f&quot;    \/\/ \u0443\u043a\u0430\u0437\u0430\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443   &lt;AzureAD provider={authProvider(config('B2C_1A_PasswordReset'))}&gt;     {       ({         login, logout, authenticationState, error, accountInfo,       }: IAzureADFunctionProps): React.ReactElement | void =&gt; {         switch (authenticationState) {           default:             login();             return &lt;h1&gt;Loading...&lt;\/h1&gt;;         }       }     }   &lt;\/AzureAD&gt; ); ReactDOM.render(   &lt;Provider store={store}&gt;     \/\/ \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438     &lt;AzureAD provider={authProvider(config('B2C_1A_signup_signin'))} reduxStore={store}&gt;       {         ({           login, logout, authenticationState, error, accountInfo,         }: IAzureADFunctionProps): React.ReactElement | void =&gt; {           switch (authenticationState) {             case AuthenticationState.Authenticated:               console.log(accountInfo); \/\/ \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f + JWT Token               return &lt;App \/&gt;;             case AuthenticationState.Unauthenticated:               if (!accountInfo &amp;&amp; !error) {                 login();               }               if (!accountInfo &amp;&amp; error) {                 \/\/ \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u0435\u0441\u043b\u0438                  \/\/ \u043e\u043d \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 AADB2C90118                 if (error.errorMessage.includes('AADB2C90118')) {                   return unauthenticatedFunction();                 }                 \/\/ \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c                 \/\/ (\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0436\u043c\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 &quot;\u0417\u0430\u0431\u044b\u043b \u043f\u0430\u0440\u043e\u043b\u044c&quot; \u0430 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 &quot;\u041e\u0442\u043c\u0435\u043d\u0430&quot;)                 if (error.errorMessage.includes('AADB2C90091')) {                   login();                 }               }               console.log('ERROR', error);               return &lt;h1&gt;Not authorized&lt;\/h1&gt;;             case AuthenticationState.InProgress:               return &lt;h1&gt;In progress&lt;\/h1&gt;;             default:               return &lt;h1&gt;Default&lt;\/h1&gt;;           }         }       }     &lt;\/AzureAD&gt;   &lt;\/Provider&gt;,   document.getElementById('root'), );  registerServiceWorker(); <\/code><\/pre>\n<p>  <\/p>\n<h2><font color=\"#D03C31\">\u0428\u0410\u0413 4<\/font><\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 <b>Azure AD B2C<\/b> \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u00ab\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439\u00bb \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043a\u0440\u043e\u043c\u0435:<\/p>\n<p>  <b>IdentityExperienceFramework<\/b> \u0438 <b>ProxyIdentityExperienceFramework<\/b>.  <\/p>\n<blockquote><p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u043f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u0448\u0430\u0433 <a href=\"https:\/\/habr.com\/ru\/post\/503890\/\">\u00ab\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u043e\u0442\u043e\u043a\u0438\u00bb<\/a><\/p><\/blockquote>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 URI:<\/p>\n<ul>\n<li><a href=\"https:\/\/localhost\" rel=\"nofollow\">localhost<\/a>:5001\/auth.html<\/li>\n<li><a href=\"https:\/\/localhost\" rel=\"nofollow\">localhost<\/a>:5001\/<\/li>\n<li><a href=\"https:\/\/myapp.b2clogin.com\/myapp.onmicrosoft.com\/oauth2\/authresp\" rel=\"nofollow\">myapp.b2clogin.com\/myapp.onmicrosoft.com\/oauth2\/authresp<\/a><\/li>\n<li>\u0414\u0440\u0443\u0433\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/li>\n<\/ul>\n<p>  <a href=\"https:\/\/habrastorage.org\/webt\/s2\/xq\/1y\/s2xq1y1qekftiwhxelowvevqrum.png\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s2\/xq\/1y\/s2xq1y1qekftiwhxelowvevqrum.png\"><\/a><\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/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=\"https:\/\/habr.com\/ru\/post\/504690\/\"> https:\/\/habr.com\/ru\/post\/504690\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/504690\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hd\/t3\/3_\/hdt33_njadqtiqzzjijasdxhzfy.png\" alt=\"image\"><\/div>\n<p>  <\/p>\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0446\u0438\u043a\u043b\u0430 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Azure B2C. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043d\u0430 React JS.<\/p>\n<p>  <b>\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u044b<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/503890\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Azure AD B2C<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/post\/504030\/\">\u0427\u0430\u0441\u0442\u044c 2: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Identity Framework Experience<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f React<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 4: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f React Native<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 5: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u044d\u043a\u044d\u043d\u0434\u0430 \u043d\u0430 .NET Core 3<\/li>\n<\/ul>\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-304600","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/304600","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=304600"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/304600\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}