{"id":304452,"date":"2020-05-28T21:00:54","date_gmt":"2020-05-28T21:00:54","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=304452"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=304452","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 2 (\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\/504030\/\">\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 \u0441\u0430\u043c\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e\u043c \u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0435, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e Identity Experience Framework.<\/p>\n<p>  <b>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c<\/b> \u2014 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0432 \u0442\u0435\u043c\u0435 \u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0438\u0447\u0438. <\/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>\u0427\u0430\u0441\u0442\u044c 2: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Identity Framework Experience<\/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<h3>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h3>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b:<\/p>\n<ol>\n<li>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 Identity Experience Framework<\/li>\n<li>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443<\/li>\n<li>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0444\u0430\u0439\u043b (\u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u044c \u00ab\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442\u00bb)<\/li>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c <\/li>\n<\/ol>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ql\/ot\/yv\/qlotyvy_zbgh037nxdzdf4xw6uc.png\" alt=\"image\"><\/p>\n<p>  \u041f\u043e \u0441\u0443\u0442\u0438, \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0440\u0430\u0437\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, \u041d\u041e:  <\/p>\n<blockquote><p> \u0415\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u0444\u0430\u0439\u043b <b>TrustFrameworkExtension.xml<\/b> \u0438\u043b\u0438 <b>TrustFrameworkBase.xml<\/b> \u2014 \u043f\u0435\u0440\u0435\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u043d\u0438\u0445 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f.<br \/>   \u0418\u043d\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442\u0435, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u0430\u043a, \u0447\u0442\u043e \u0432\u0430\u0448\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f. \u042d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435<br \/>   \u0432\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0444\u0430\u0439\u043b.   <\/p><\/blockquote>\n<p>  \u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0442\u043e\u043c \u2014 \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<blockquote><p>a.TrustFrameworkBase.xml<br \/>  b.TrustFrameworkExtensions.xml<br \/>  c.SignUpOrSignin. XML<br \/>  d.ProfileEdit. XML<br \/>  e.PasswordReset. XML<\/p><\/blockquote>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043d\u0435 \u0431\u044b \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043d\u0438\u0445.<\/p>\n<p>  <b>TrustFrameworkBase.xml<\/b><\/p>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443. \u041f\u043e \u0441\u0443\u0442\u0438 \u043e\u043d \u2014 \u043e\u0441\u043d\u043e\u0432\u0430 \u043e\u0441\u043d\u043e\u0432, \u043d\u043e \u0432 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u0445 \u043f\u0440\u043e \u043d\u0435\u0433\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u00ab\u041b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b\u00bb. \u041e\u0442\u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0434\u0430, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432 \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442:<\/p>\n<ol>\n<li>\u041b\u044e\u0431\u043e\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <b>TrustFrameworkExtensions.xml<\/b> \u043f\u043e \u0441\u0443\u0442\u0438 \u0441\u0432\u043e\u0435\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u0437 <b>TrustFrameworkBase.xml<\/b> <\/li>\n<li>\u0415\u0441\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432 <b>TrustFrameworkBase.xml<\/b>.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u2014 \u0442\u043e \u043e\u043d 100% \u043b\u0435\u0436\u0438\u0442 \u0432 <b>TrustFrameworkBase.xml<\/b> \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <\/li>\n<\/ol>\n<p>  \u0418\u0437 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0441\u043a\u0430\u0436\u0443 \u2014 \u044f \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0435 \u0432\u0435\u0449\u0438 (\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0438 \u0443\u0434\u0430\u043b\u0438\u043b \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435).<\/p>\n<p>  <b>TrustFrameworkExtension.xml<\/b><\/p>\n<p>  \u0421 \u0434\u0430\u043d\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u043c\u0435\u0441\u0442\u0435. \u041f\u043e \u0441\u0443\u0442\u0438, \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. \u041e \u043d\u0435\u043c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u0445.<\/p>\n<p>  <b>SignUpOrSignin. XML, ProfileEdit. XML, PasswordReset. XML<\/b><\/p>\n<p>  \u042d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u2014 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438. \u0412 \u043d\u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e <b>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435<\/b> \u0444\u0430\u0439\u043b\u043e\u0432. \u0423 \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0430\u0439\u043b\u0430 <b>TrustFrameworkExtension.xml<\/b>.<\/p>\n<p>  \u0424\u0430\u0439\u043b \u043f\u043e\u0434\u0435\u043b\u0435\u043d \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432<\/p>\n<pre><code class=\"xml\">&lt;TrustFrameworkPolicy&gt;   &lt;BasePolicy&gt; &lt;!-- \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b --&gt;       &lt;TenantId&gt;customtenant.onmicrosoft.com&lt;\/TenantId&gt;       &lt;PolicyId&gt;B2C_1A_TrustFrameworkBase&lt;\/PolicyId&gt;   &lt;\/BasePolicy&gt;    &lt;BuildingBlocks&gt; &lt;!-- \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u044c UI --&gt;   &lt;\/BuildingBlocks&gt;    &lt;ClaimsProviders&gt; &lt;!-- \u0421\u043e\u0431\u0440\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 JWT token) --&gt;   &lt;\/ClaimsProviders&gt;      &lt;UserJourneys&gt; &lt;!-- \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u044b \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 --&gt;   &lt;\/UserJourneys&gt; &lt;\/TrustFrameworkPolicy&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h3>BuildingBlocks<\/h3>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u00ab\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>  <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/claimsschema\" rel=\"nofollow\"><b>ClaimsSchema<\/b><\/a><\/p>\n<p>  \u042d\u043b\u0435\u043c\u0435\u043d\u0442 <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/claimsschema\" rel=\"nofollow\"><b>ClaimsSchema<\/b><\/a> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f\u044b \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438.<\/p>\n<pre><code class=\"xml\">  &lt;BuildingBlocks&gt;     &lt;ClaimsSchema&gt;       &lt;ClaimType Id=&quot;picture&quot;&gt;&lt;!-- \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043a\u0430\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 UI \u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0442\u043e\u043a\u0435\u043d\u0430 --&gt;         &lt;DisplayName&gt;Picture&lt;\/DisplayName&gt;         &lt;DataType&gt;string&lt;\/DataType&gt;       &lt;\/ClaimType&gt;       &lt;ClaimType Id=&quot;country&quot;&gt;&lt;!-- \u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 --&gt;         &lt;DisplayName&gt;Country&lt;\/DisplayName&gt;         &lt;DataType&gt;string&lt;\/DataType&gt;         &lt;UserInputType&gt;DropdownSingleSelect&lt;\/UserInputType&gt;         &lt;Restriction&gt;           &lt;Enumeration Text=&quot;Russia&quot; Value=&quot;russia&quot; SelectByDefault=&quot;false&quot; \/&gt;           &lt;Enumeration Text=&quot;Other&quot; Value=&quot;other&quot; SelectByDefault=&quot;false&quot; \/&gt;         &lt;\/Restriction&gt;       &lt;\/ClaimType&gt;            ...     &lt;\/ClaimsSchema&gt;   <\/code><\/pre>\n<p>   <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/predicates\" rel=\"nofollow\"><b>Predicates<\/b><\/a><\/p>\n<p>  <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/predicates\" rel=\"nofollow\"><b>\u041f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u044b <\/b><\/a> \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442 \u0432\u0430\u043b\u0438\u0434\u0430\u0442\u0438\u043e\u043d\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432 \u043a\u043b\u0438\u0435\u043d\u0442 Azure Active Directory B2C (Azure AD B2C) \u0432\u0432\u0435\u0434\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<pre><code class=\"xml\">    &lt;Predicates&gt; &lt;!-- \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u043e\u0432 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0430\u0440\u043e\u043b\u044f --&gt;       &lt;Predicate Id=&quot;LengthRange&quot; Method=&quot;IsLengthRange&quot;&gt;         &lt;UserHelpText&gt;The password must be between 6 and 64 characters.&lt;\/UserHelpText&gt;         &lt;Parameters&gt;           &lt;Parameter Id=&quot;Minimum&quot;&gt;6&lt;\/Parameter&gt;           &lt;Parameter Id=&quot;Maximum&quot;&gt;64&lt;\/Parameter&gt;         &lt;\/Parameters&gt;       &lt;\/Predicate&gt;       &lt;Predicate Id=&quot;Lowercase&quot; Method=&quot;IncludesCharacters&quot;&gt;         &lt;UserHelpText&gt;a lowercase letter&lt;\/UserHelpText&gt;         &lt;Parameters&gt;           &lt;Parameter Id=&quot;CharacterSet&quot;&gt;a-z&lt;\/Parameter&gt;         &lt;\/Parameters&gt;       &lt;\/Predicate&gt;           ...     &lt;\/Predicates&gt;   <\/code><\/pre>\n<p>   <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/predicates#predicatevalidations\" rel=\"nofollow\"><b>PredicateValidations<\/b><\/a><\/p>\n<p>  \u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0442\u0438\u043f\u0443 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f, <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/predicates#predicatevalidations\" rel=\"nofollow\"><b>PredicateValidations<\/b><\/a> \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u043e\u0432 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0432\u043e\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0442\u0438\u043f\u0443 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f.<\/p>\n<pre><code class=\"xml\">    &lt;PredicateValidations&gt; &lt;!-- \u0413\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u043e \u043a\u0430\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438\u043d\u043f\u0443\u0442 --&gt;       &lt;PredicateValidation Id=&quot;CustomPassword&quot;&gt;         &lt;PredicateGroups&gt;           &lt;PredicateGroup Id=&quot;LengthGroup&quot;&gt;             &lt;PredicateReferences MatchAtLeast=&quot;1&quot;&gt;               &lt;PredicateReference Id=&quot;LengthRange&quot; \/&gt;             &lt;\/PredicateReferences&gt;           &lt;\/PredicateGroup&gt;           &lt;PredicateGroup Id=&quot;CharacterClasses&quot;&gt;             &lt;UserHelpText&gt;The password must have at least 1 of the following:&lt;\/UserHelpText&gt;             &lt;PredicateReferences MatchAtLeast=&quot;2&quot;&gt;               &lt;PredicateReference Id=&quot;Lowercase&quot; \/&gt; &lt;!-- \u0421\u0441\u044b\u043b\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u044b\u0448\u0435 --&gt;               &lt;PredicateReference Id=&quot;Uppercase&quot; \/&gt;                     ...             &lt;\/PredicateReferences&gt;           &lt;\/PredicateGroup&gt;         &lt;\/PredicateGroups&gt;       &lt;\/PredicateValidation&gt;     &lt;\/PredicateValidations&gt;   <\/code><\/pre>\n<p>   <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/claimstransformations\" rel=\"nofollow\"><b>ClaimsTransformations<\/b><\/a><\/p>\n<p>  \u042d\u043b\u0435\u043c\u0435\u043d\u0442 <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/claimstransformations\" rel=\"nofollow\"><b>ClaimsTransformations<\/b><\/a> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0443\u0442\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0447\u0430\u0441\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438. <\/p>\n<pre><code class=\"xml\">    &lt;ClaimsTransformations&gt; &lt;!-- \u041f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0434\u043d\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 --&gt;       &lt;ClaimsTransformation Id=&quot;GenerateSendGridRequestBody&quot; TransformationMethod=&quot;GenerateJson&quot;&gt;         &lt;InputClaims&gt;           &lt;InputClaim ClaimTypeReferenceId=&quot;email&quot; TransformationClaimType=&quot;personalizations.0.to.0.email&quot; \/&gt;           &lt;InputClaim ClaimTypeReferenceId=&quot;otp&quot; TransformationClaimType=&quot;personalizations.0.dynamic_template_data.otp&quot; \/&gt;           &lt;InputClaim ClaimTypeReferenceId=&quot;email&quot; TransformationClaimType=&quot;personalizations.0.dynamic_template_data.email&quot; \/&gt;         &lt;\/InputClaims&gt;         &lt;InputParameters&gt;           &lt;InputParameter Id=&quot;template_id&quot; DataType=&quot;string&quot; Value=&quot;d-b0000000000000000000000000000000&quot; \/&gt; &lt;!-- Template ID SendGrid (\u044d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043a\u043e\u0441\u0442\u044e\u043c\u043d\u043e\u043c\u0443 \u043f\u0438\u0441\u044c\u043c\u0443) --&gt;           &lt;InputParameter Id=&quot;from.email&quot; DataType=&quot;string&quot; Value=&quot;custom@email.com&quot; \/&gt;           &lt;InputParameter Id=&quot;personalizations.0.dynamic_template_data.subject&quot; DataType=&quot;string&quot; Value=&quot;Welcome to Habr!&quot;\/&gt;         &lt;\/InputParameters&gt;         &lt;OutputClaims&gt;           &lt;OutputClaim ClaimTypeReferenceId=&quot;sendGridReqBody&quot; TransformationClaimType=&quot;outputClaim&quot; \/&gt;         &lt;\/OutputClaims&gt;       &lt;\/ClaimsTransformation&gt;             ...     &lt;\/ClaimsTransformations&gt;   <\/code><\/pre>\n<p>   <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/contentdefinitions\" rel=\"nofollow\"><b>ContentDefinitions<\/b><\/a><\/p>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446<\/p>\n<pre><code class=\"xml\">    &lt;ContentDefinitions&gt; &lt;!-- \u0422\u0443\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b --&gt;       &lt;ContentDefinition Id=&quot;api.signuporsignin&quot;&gt;         &lt;LoadUri&gt;https:\/\/azure.blob.core.windows.net\/yourblobstorage\/pagelayoutfile.html&lt;\/LoadUri&gt;         &lt;RecoveryUri&gt;~\/common\/default_page_error.html&lt;\/RecoveryUri&gt;         &lt;DataUri&gt;urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:1.2.0&lt;\/DataUri&gt;       &lt;\/ContentDefinition&gt;           ...     &lt;\/ContentDefinitions&gt;   <\/code><\/pre>\n<p>   <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/display-controls\" rel=\"nofollow\"><b>DisplayControls<\/b><\/a><\/p>\n<p>  <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/display-controls\" rel=\"nofollow\"><b>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u00ab\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u00bb <\/b><\/a> \u2014 \u044d\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u043e\u0439 Azure Active Directory B2C (Azure AD B2C)<\/p>\n<pre><code class=\"xml\">    &lt;DisplayControls&gt; &lt;!-- \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0434\u043b\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 --&gt;       &lt;DisplayControl Id=&quot;emailVerificationControl&quot; UserInterfaceControlType=&quot;VerificationControl&quot;&gt;         &lt;DisplayClaims&gt; &lt;!-- \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u043f\u043e\u043b\u0435 --&gt;           &lt;DisplayClaim ClaimTypeReferenceId=&quot;email&quot; Required=&quot;true&quot; \/&gt;           &lt;DisplayClaim ClaimTypeReferenceId=&quot;verificationCode&quot; ControlClaimType=&quot;VerificationCode&quot; Required=&quot;true&quot; \/&gt;         &lt;\/DisplayClaims&gt;         &lt;OutputClaims&gt; &lt;!-- \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0442\u043e\u043a\u0435\u043d) --&gt;           &lt;OutputClaim ClaimTypeReferenceId=&quot;email&quot; \/&gt;         &lt;\/OutputClaims&gt;         &lt;Actions&gt;           &lt;Action Id=&quot;SendCode&quot;&gt; &lt;!-- \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 --&gt;             &lt;ValidationClaimsExchange&gt;               &lt;ValidationClaimsExchangeTechnicalProfile TechnicalProfileReferenceId=&quot;GenerateOtp&quot; \/&gt;               &lt;ValidationClaimsExchangeTechnicalProfile TechnicalProfileReferenceId=&quot;SendGrid&quot; \/&gt;             &lt;\/ValidationClaimsExchange&gt;           &lt;\/Action&gt;             ...         &lt;\/Actions&gt;       &lt;\/DisplayControl&gt;           ...     &lt;\/DisplayControls&gt;   &lt;\/BuildingBlocks&gt; <\/code><\/pre>\n<p>  <\/p>\n<h3>ClaimsProviders<\/h3>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0431\u043b\u043e\u043a\u0435, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0438\u0445 \u043d\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0422\u0443\u0442 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0438 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p>  <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/claimsproviders\" rel=\"nofollow\">ClaimsProvider<\/a> \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u0442 \u0441\u0432\u044f\u0437\u044c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u0441 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439.<\/p>\n<pre><code class=\"xml\">  &lt;ClaimsProviders&gt;     &lt;ClaimsProvider&gt; &lt;!-- \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 - \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0435\u0441\u0442\u044c \u0432 \u0431\u044d\u0439\u0437 \u0438 \u043c\u044b \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c--&gt;       &lt;DisplayName&gt;Self Asserted&lt;\/DisplayName&gt;     <\/code><\/pre>\n<p>   \u042d\u043b\u0435\u043c\u0435\u043d\u0442 <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/technicalprofiles\" rel=\"nofollow\">TechnicalProfiles<\/a> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439. <\/p>\n<pre><code class=\"xml\">      &lt;TechnicalProfiles&gt;         &lt;TechnicalProfile Id=&quot;SelfAsserted-Social&quot;&gt;           &lt;DisplayName&gt;User ID signup&lt;\/DisplayName&gt;           &lt;Protocol Name=&quot;Proprietary&quot; Handler=&quot;Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&quot; \/&gt;           &lt;Metadata&gt;             &lt;Item Key=&quot;ContentDefinitionReferenceId&quot;&gt;api.selfasserted&lt;\/Item&gt; &lt;!-- \u0422\u0438\u043f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. (\u0418\u0437 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e)--&gt;           &lt;\/Metadata&gt;           &lt;CryptographicKeys&gt;             &lt;Key Id=&quot;issuer_secret&quot; StorageReferenceId=&quot;B2C_1A_TokenSigningKeyContainer&quot; \/&gt; &lt;!-- \u041a\u043b\u044e\u0447 \u0438\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 --&gt;           &lt;\/CryptographicKeys&gt;           &lt;InputClaims&gt; &lt;!-- \u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442.\u0435. \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043d\u0430 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435--&gt;             &lt;InputClaim ClaimTypeReferenceId=&quot;givenName&quot; \/&gt;             &lt;InputClaim ClaimTypeReferenceId=&quot;surname&quot; \/&gt;           &lt;\/InputClaims&gt;           &lt;OutputClaims&gt; &lt;!-- \u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0430, \u0434\u0440\u0443\u0433\u0438\u0435 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u043d\u043f\u0443\u0442\u0430 \u044e\u0437\u0435\u0440\u0430 (\u043d\u0438\u0436\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438) --&gt;               &lt;!-- These claims ensure that any values retrieved in the previous steps (e.g. from an external IDP) are prefilled.                   Note that some of these claims may not have any value, for example, if the external IDP did not provide any of                  these values, or if the claim did not appear in the OutputClaims section of the IDP.                  In addition, if a claim is not in the InputClaims section, but it is in the OutputClaims section, then its                  value will not be prefilled, but the user will still be prompted for it (with an empty value). --&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;objectId&quot; \/&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;newUser&quot; \/&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;executed-SelfAsserted-Input&quot; DefaultValue=&quot;true&quot; \/&gt;              &lt;!-- Optional claims. These claims are collected from the user and can be modified. If a claim is to be persisted in the directory after having been                   collected from the user, it needs to be added as a PersistedClaim in the ValidationTechnicalProfile referenced below, i.e.                   in AAD-UserWriteUsingAlternativeSecurityId. --&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;givenName&quot; Required=&quot;true&quot;\/&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;surname&quot; Required=&quot;true&quot;\/&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;country&quot; Required=&quot;true&quot;\/&gt;           &lt;\/OutputClaims&gt;         &lt;\/TechnicalProfile&gt;       &lt;\/ClaimsProvider&gt;       <\/code><\/pre>\n<p>   <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u0432 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0435\u043d\u0438\u0439 Facebook<\/b>                         <\/p>\n<div class=\"spoiler_text\"> \u041f\u0440\u0438\u043c\u0435\u0440 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/p>\n<pre><code class=\"xml\">    &lt;ClaimsProvider&gt; &lt;!-- \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. \u0422\u0443\u0442 \u043c\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u044d\u0439\u0441\u0431\u0443\u043a\u0430--&gt;       &lt;DisplayName&gt;Facebook&lt;\/DisplayName&gt;       &lt;TechnicalProfiles&gt;         &lt;TechnicalProfile Id=&quot;Facebook-OAUTH&quot;&gt;           &lt;Metadata&gt;             &lt;Item Key=&quot;client_id&quot;&gt;FACEBOOK_ID&lt;\/Item&gt;             &lt;Item Key=&quot;scope&quot;&gt;email public_profile&lt;\/Item&gt;             &lt;Item Key=&quot;ClaimsEndpoint&quot;&gt;https:\/\/graph.facebook.com\/me?fields=id,first_name,last_name,name,email,picture&lt;\/Item&gt;           &lt;\/Metadata&gt;           &lt;OutputClaims&gt;             &lt;OutputClaim ClaimTypeReferenceId=&quot;picture&quot; PartnerClaimType=&quot;picture&quot; \/&gt;           &lt;\/OutputClaims&gt;         &lt;\/TechnicalProfile&gt;       &lt;\/TechnicalProfiles&gt;     &lt;\/ClaimsProvider&gt;   <\/code><\/pre>\n<p>   \u041f\u043e\u043b\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0438\u0437 TrustFrameworkBase.xml<\/p>\n<pre><code class=\"xml\">      &lt;ClaimsProvider&gt;         &lt;!-- The following Domain element allows this profile to be used if the request comes with domain_hint               query string parameter, e.g. domain_hint=facebook.com  --&gt;         &lt;Domain&gt;facebook.com&lt;\/Domain&gt;         &lt;DisplayName&gt;Facebook&lt;\/DisplayName&gt;         &lt;TechnicalProfiles&gt;           &lt;TechnicalProfile Id=&quot;Facebook-OAUTH&quot;&gt;             &lt;!-- The text in the following DisplayName element is shown to the user on the claims provider                   selection screen. --&gt;             &lt;DisplayName&gt;Facebook&lt;\/DisplayName&gt;             &lt;Protocol Name=&quot;OAuth2&quot; \/&gt;             &lt;Metadata&gt;               &lt;Item Key=&quot;ProviderName&quot;&gt;facebook&lt;\/Item&gt;               &lt;Item Key=&quot;authorization_endpoint&quot;&gt;https:\/\/www.facebook.com\/dialog\/oauth&lt;\/Item&gt;               &lt;Item Key=&quot;AccessTokenEndpoint&quot;&gt;https:\/\/graph.facebook.com\/oauth\/access_token&lt;\/Item&gt;               &lt;Item Key=&quot;HttpBinding&quot;&gt;GET&lt;\/Item&gt;               &lt;Item Key=&quot;UsePolicyInRedirectUri&quot;&gt;0&lt;\/Item&gt;                  &lt;!-- The Facebook required HTTP GET method, but the access token response is in JSON format from 3\/27\/2017 --&gt;               &lt;Item Key=&quot;AccessTokenResponseFormat&quot;&gt;json&lt;\/Item&gt;             &lt;\/Metadata&gt;             &lt;CryptographicKeys&gt;               &lt;Key Id=&quot;client_secret&quot; StorageReferenceId=&quot;B2C_1A_FacebookSecret&quot; \/&gt;             &lt;\/CryptographicKeys&gt;             &lt;InputClaims \/&gt;             &lt;OutputClaims&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;issuerUserId&quot; PartnerClaimType=&quot;id&quot; \/&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;givenName&quot; PartnerClaimType=&quot;first_name&quot; \/&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;surname&quot; PartnerClaimType=&quot;last_name&quot; \/&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;displayName&quot; PartnerClaimType=&quot;name&quot; \/&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;email&quot; PartnerClaimType=&quot;email&quot; \/&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;identityProvider&quot; DefaultValue=&quot;facebook.com&quot; AlwaysUseDefaultValue=&quot;true&quot; \/&gt;               &lt;OutputClaim ClaimTypeReferenceId=&quot;authenticationSource&quot; DefaultValue=&quot;socialIdpAuthentication&quot; AlwaysUseDefaultValue=&quot;true&quot; \/&gt;             &lt;\/OutputClaims&gt;             &lt;OutputClaimsTransformations&gt;               &lt;OutputClaimsTransformation ReferenceId=&quot;CreateRandomUPNUserName&quot; \/&gt;               &lt;OutputClaimsTransformation ReferenceId=&quot;CreateUserPrincipalName&quot; \/&gt;               &lt;OutputClaimsTransformation ReferenceId=&quot;CreateAlternativeSecurityId&quot; \/&gt;             &lt;\/OutputClaimsTransformations&gt;             &lt;UseTechnicalProfileForSessionManagement ReferenceId=&quot;SM-SocialLogin&quot; \/&gt;           &lt;\/TechnicalProfile&gt;         &lt;\/TechnicalProfiles&gt;       &lt;\/ClaimsProvider&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<h3>UserJourneys<\/h3>\n<p>  \u0412 <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/userjourneys\" rel=\"nofollow\">UserJourneys<\/a> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u044f\u0432\u043d\u044b\u0435 \u043f\u0443\u0442\u0438, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f\u0445, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0430\u0440\u0443 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0432\u0435\u0449\u0435\u0439, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0439\u0442\u0438 \u043b\u0435\u0433\u043a\u043e \u0432 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043d\u0438\u0436\u0435.<\/p>\n<pre><code class=\"xml\">  &lt;UserJourneys&gt;     &lt;UserJourney Id=&quot;SignUp&quot;&gt; &lt;!-- \u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c ID UserJourney. \u041d\u0430 \u043d\u0435\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435 TrustFrameworkExtension.xml--&gt;       &lt;OrchestrationSteps&gt;&lt;!-- \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0448\u0430\u0433\u0438. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e--&gt;         &lt;OrchestrationStep Order=&quot;1&quot; Type=&quot;ClaimsExchange&quot; ContentDefinitionReferenceId=&quot;api.localaccountsignup&quot;&gt;           &lt;ClaimsExchanges&gt; &lt;!-- \u0413\u043e\u0432\u043e\u0440\u0438\u043c \u043a\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 TechnicalProfileReferenceId. Id \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0437 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430 --&gt;             &lt;ClaimsExchange Id=&quot;SignUpWithLogonEmailExchange&quot; TechnicalProfileReferenceId=&quot;LocalAccountSignUpWithLogonEmail-2&quot; \/&gt;           &lt;\/ClaimsExchanges&gt;         &lt;\/OrchestrationStep&gt;         &lt;OrchestrationStep Order=&quot;2&quot; Type=&quot;SendClaims&quot; CpimIssuerTechnicalProfileReferenceId=&quot;JwtIssuer&quot; \/&gt; &lt;!-- \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 --&gt;       &lt;\/OrchestrationSteps&gt;       &lt;ClientDefinition ReferenceId=&quot;DefaultWeb&quot; \/&gt;     &lt;\/UserJourney&gt;     &lt;UserJourney Id=&quot;PasswordReset&quot;&gt;       &lt;OrchestrationSteps&gt;         &lt;OrchestrationStep Order=&quot;1&quot; Type=&quot;ClaimsExchange&quot;&gt;           &lt;ClaimsExchanges&gt;             &lt;ClaimsExchange Id=&quot;PasswordResetUsingEmailAddressExchange&quot; TechnicalProfileReferenceId=&quot;LocalAccountDiscoveryUsingEmailAddress&quot; \/&gt;           &lt;\/ClaimsExchanges&gt;         &lt;\/OrchestrationStep&gt;         &lt;OrchestrationStep Order=&quot;2&quot; Type=&quot;ClaimsExchange&quot;&gt;           &lt;ClaimsExchanges&gt;             &lt;ClaimsExchange Id=&quot;NewCredentials&quot; TechnicalProfileReferenceId=&quot;LocalAccountWritePasswordUsingObjectId&quot; \/&gt;           &lt;\/ClaimsExchanges&gt;         &lt;\/OrchestrationStep&gt;         &lt;OrchestrationStep Order=&quot;3&quot; Type=&quot;SendClaims&quot; CpimIssuerTechnicalProfileReferenceId=&quot;JwtIssuer&quot; \/&gt;       &lt;\/OrchestrationSteps&gt;       &lt;ClientDefinition ReferenceId=&quot;DefaultWeb&quot; \/&gt;     &lt;\/UserJourney&gt;        ...   &lt;\/UserJourneys&gt; <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 ClaimsExchange<\/b>                         <\/p>\n<div class=\"spoiler_text\"> \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/custom-policy-rest-api-claims-exchange\" rel=\"nofollow\">ClaimsExchanges<\/a> \u0441 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c.<\/p>\n<pre><code class=\"xml\">    &lt;ClaimsProviderSelections&gt;       &lt;ClaimsProviderSelection TargetClaimsExchangeId=&quot;FacebookExchange&quot; \/&gt;       &lt;ClaimsProviderSelection TargetClaimsExchangeId=&quot;GoogleExchange&quot; \/&gt;       &lt;ClaimsProviderSelection ValidationClaimsExchangeId=&quot;LocalAccountSigninEmailExchange&quot; \/&gt;     &lt;\/ClaimsProviderSelections&gt;     &lt;ClaimsExchanges&gt;       &lt;ClaimsExchange Id=&quot;LocalAccountSigninEmailExchange&quot; TechnicalProfileReferenceId=&quot;SelfAsserted-LocalAccountSignin-Email&quot; \/&gt;     &lt;\/ClaimsExchanges&gt;   <\/code><\/pre>\n<p>   <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<h3>\u0422\u0438\u043f\u043e\u0432\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/h3>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u044b \u043d\u0438\u0436\u0435.<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/identity-provider-facebook\" rel=\"nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0432\u0445\u043e\u0434\u0430 \u0441 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e Facebook<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/identity-provider-google\" rel=\"nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0432\u0445\u043e\u0434\u0430 \u0441 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e Google<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/custom-email\" rel=\"nofollow\">\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/custom-policy-password-complexity\" rel=\"nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044f \u0432 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430\u0445<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/customize-ui-overview\" rel=\"nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/active-directory-b2c\/user-flow-language-customization\" rel=\"nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u044f\u0437\u044b\u043a\u0430<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h3>SignUpOrSignin.XML, ProfileEdit.XML, PasswordReset.XML<\/h3>\n<p>  \u042d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \\ \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <b>BuildingBlocks<\/b> \u0438 \u0433\u0434\u0435 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0442\u043e\u043a\u0435\u043d.<\/p>\n<pre><code class=\"xml\">  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;TrustFrameworkPolicy xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;    xmlns:xsd=&quot;http:\/\/www.w3.org\/2001\/XMLSchema&quot;    xmlns=&quot;http:\/\/schemas.microsoft.com\/online\/cpim\/schemas\/2013\/06&quot; PolicySchemaVersion=&quot;0.3.0.0&quot; TenantId=&quot;antekesd.onmicrosoft.com&quot; PolicyId=&quot;B2C_1A_signup_signin&quot; PublicPolicyUri=&quot;http:\/\/antekesd.onmicrosoft.com\/B2C_1A_signup_signin&quot;&gt;    &lt;BasePolicy&gt;     &lt;TenantId&gt;antekesd.onmicrosoft.com&lt;\/TenantId&gt;     &lt;PolicyId&gt;B2C_1A_TrustFrameworkExtensions&lt;\/PolicyId&gt;   &lt;\/BasePolicy&gt;   &lt;BuildingBlocks&gt;     &lt;ContentDefinitions&gt;       &lt;ContentDefinition Id=&quot;api.signuporsignin&quot;&gt; &lt;!-- \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b --&gt;         &lt;LoadUri&gt;https:\/\/some.blob.core.windows.net\/some\/some.html&lt;\/LoadUri&gt;         &lt;RecoveryUri&gt;~\/common\/default_page_error.html&lt;\/RecoveryUri&gt;         &lt;DataUri&gt;urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:1.2.0&lt;\/DataUri&gt;       &lt;\/ContentDefinition&gt;     &lt;\/ContentDefinitions&gt;   &lt;\/BuildingBlocks&gt;   &lt;RelyingParty&gt;     &lt;DefaultUserJourney ReferenceId=&quot;SignUpOrSignIn&quot; \/&gt; &lt;!-- \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c--&gt;     &lt;TechnicalProfile Id=&quot;PolicyProfile&quot;&gt;       &lt;DisplayName&gt;PolicyProfile&lt;\/DisplayName&gt;       &lt;Protocol Name=&quot;OpenIdConnect&quot; \/&gt;       &lt;OutputClaims&gt; &lt;!-- \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 JWT Token. \u042d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u044b --&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;signInName&quot; PartnerClaimType=&quot;email&quot;\/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;givenName&quot; Required=&quot;true&quot;\/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;surname&quot; Required=&quot;true&quot;\/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;email&quot; \/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;objectId&quot; PartnerClaimType=&quot;sub&quot;\/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;identityProvider&quot; \/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;tenantId&quot; AlwaysUseDefaultValue=&quot;true&quot; DefaultValue=&quot;{Policy:TenantObjectId}&quot; \/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;picture&quot; \/&gt;         &lt;OutputClaim ClaimTypeReferenceId=&quot;country&quot; Required=&quot;true&quot;\/&gt;       &lt;\/OutputClaims&gt;       &lt;SubjectNamingInfo ClaimType=&quot;sub&quot; \/&gt;     &lt;\/TechnicalProfile&gt;   &lt;\/RelyingParty&gt; &lt;\/TrustFrameworkPolicy&gt; <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u0435\u0436\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e:<\/p>\n<ol>\n<li>\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 Identity Experience Framework<\/li>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c <b>Policy<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/li>\n<li>\u041d\u0430\u0436\u0430\u0442\u044c \u00ab\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441\u00bb<\/li>\n<\/ol>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-d\/bv\/nb\/-dbvnbzig1vatibisepcb9ekdxq.png\" alt=\"image\"><\/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 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e (\u0438\u043b\u0438 \u043f\u043e\u0447\u0442\u0438) \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0443\u044e \u0432\u0430\u0448\u0438\u043c \\ \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c.<\/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\/504030\/\"> https:\/\/habr.com\/ru\/post\/504030\/<\/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\/504030\/\">\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 \u0441\u0430\u043c\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e\u043c \u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0435, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e Identity Experience Framework.<\/p>\n<p>  <b>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c<\/b> \u2014 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0432 \u0442\u0435\u043c\u0435 \u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0438\u0447\u0438. <\/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>\u0427\u0430\u0441\u0442\u044c 2: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Identity Framework Experience<\/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-304452","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/304452","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=304452"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/304452\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}