{"id":442841,"date":"2024-12-25T09:01:41","date_gmt":"2024-12-25T09:01:41","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=442841"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-12-25T09:01:41","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=442841","title":{"rendered":"<span>\u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 mail.ru \u0432 OpenAM<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"http:\/\/mail.ru\/\" rel=\"noopener noreferrer nofollow\"><u>Mail.ru<\/u><\/a>\u00a0&#8212; \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0432 \u0420\u043e\u0441\u0441\u0438\u0438. \u0415\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 50 \u043c\u043b\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0448\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u00a0<a href=\"http:\/\/mail.ru\/\" rel=\"noopener noreferrer nofollow\"><u>mail.ru<\/u><\/a>\u00a0\u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437\u00a0<a href=\"https:\/\/github.com\/OpenIdentityPlatform\/OpenAM\" rel=\"noopener noreferrer nofollow\"><u>OpenAM<\/u><\/a>.<\/p>\n<h3>\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\u044f<\/h3>\n<p>\u0423 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u044f\u0449\u0438\u043a \u043d\u0430 mail.ru<\/p>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u00a0<a href=\"https:\/\/o2.mail.ru\/app\/\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/o2.mail.ru\/app\/<\/u><\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u201d<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438, \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>redirect_uri \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435\u00a0<code>&lt;URI OpenAM&gt;\/oauth2c\/OAuthProxy.jsp<\/code>\u00a0, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,\u00a0<code>http:\/\/openam.example.org:8080\/openam\/oauth2c\/OAuthProxy.jsp<\/code><\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0430\u0439\u0442\u201d<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9d1\/1a9\/7e3\/9d11a97e3a00e70c640b42db0860c70c.png\" alt=\"Mail.ru application settings\" width=\"2718\" height=\"1078\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9d1\/1a9\/7e3\/9d11a97e3a00e70c640b42db0860c70c.png\"\/><\/p>\n<div><figcaption>Mail.ru application settings<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 Client Id \u0438 Client Secret. \u041e\u043d\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0432\u0430\u043c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 OpenAM.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u201c\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\u201d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0447\u0435\u043a\u0431\u043e\u043a\u0441 \u201cWeb\u201d.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a50\/78e\/f51\/a5078ef513d8eb01f6dc03adb76ddef5.png\" alt=\"Mail.ru edit application\" width=\"2756\" height=\"1246\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a50\/78e\/f51\/a5078ef513d8eb01f6dc03adb76ddef5.png\"\/><\/p>\n<div><figcaption>Mail.ru edit application<\/figcaption><\/div>\n<\/figure>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OpenAM<\/h3>\n<p>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c OpenAM \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\u00a0<a href=\"https:\/\/www.3a-systems.ru\/blog\/2024-11-25-openam-docker-quickstart\" rel=\"noopener noreferrer nofollow\"><u>\u0442\u0443\u0442<\/u><\/a>.<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OpenAM<\/h4>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435\u00a0<a href=\"http:\/\/openam.example.org:8080\/openam\/XUI\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/openam.example.org:8080\/openam\/XUI<\/u><\/a>. \u0412 \u043f\u043e\u043b\u0435 \u043b\u043e\u0433\u0438\u043d \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0<code>amadmin<\/code>\u00a0\u0432 \u043f\u043e\u043b\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f, \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 OpenAM. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212;\u00a0<code>passw0rd<\/code>.<\/p>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043c\u0435\u043d\u044e \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 Top Level Realm. \u0412 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 Authentication \u2192 Modules \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\u00a0<code>mailru<\/code>. \u0422\u0438\u043f \u043c\u043e\u0434\u0443\u043b\u044f &#8212; OAuth 2.0 \/ OpenID Connect.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/64c\/771\/709\/64c771709e8b6ce1e8c84802c2ea64cf.png\" alt=\"OpenAM new Mail.ru authentication module\" width=\"1944\" height=\"534\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/64c\/771\/709\/64c771709e8b6ce1e8c84802c2ea64cf.png\"\/><\/p>\n<div><figcaption>OpenAM new Mail.ru authentication module<\/figcaption><\/div>\n<\/figure>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/p>\n<\/th>\n<th>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Client Id<\/p>\n<\/td>\n<td>\n<p align=\"left\">Client ID \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f mail.ru<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Client Secret<\/p>\n<\/td>\n<td>\n<p align=\"left\">Client Secret \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f mail.ru<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Authentication Endpoint URL<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/oauth.mail.ru\/login\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/oauth.mail.ru\/login<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Access Token Endpoint URL<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/oauth.mail.ru\/token\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/oauth.mail.ru\/token<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">User Profile Service URL<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/oauth.mail.ru\/userinfo\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/oauth.mail.ru\/userinfo<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Scope<\/p>\n<\/td>\n<td>\n<p align=\"left\">email<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">OAuth2 Access Token Profile Service Parameter name<\/p>\n<\/td>\n<td>\n<p align=\"left\">access_token<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Proxy URL<\/p>\n<\/td>\n<td>\n<p align=\"left\">Redirect URI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.\u00a0<a href=\"http:\/\/openam.example.org:8080\/openam\/oauth2c\/OAuthProxy.jsp\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/openam.example.org:8080\/openam\/oauth2c\/OAuthProxy.jsp<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Account Mapper Configuration<\/p>\n<\/td>\n<td>\n<p align=\"left\">id=uid email=mail<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Attribute Mapper Configuration<\/p>\n<\/td>\n<td>\n<p align=\"left\">id=uid email=mail last_name=sn first_name=givenName<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">OpenID Connect validation configuration type<\/p>\n<\/td>\n<td>\n<p align=\"left\">client_secret<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Prompt for password setting and activation code<\/p>\n<\/td>\n<td>\n<p align=\"left\">false<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443\u00a0<code>Save<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\u00a0<code>mailru<\/code>\u00a0. \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Top Level Realm. \u0412 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 Authentication \u2192 Chains \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/173\/ff4\/872\/173ff487299273aae440dbf4fa51492f.png\" alt=\"OpenAM Mail.ru authentication chain\" width=\"2356\" height=\"1292\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/173\/ff4\/872\/173ff487299273aae440dbf4fa51492f.png\"\/><\/p>\n<div><figcaption>OpenAM Mail.ru authentication chain<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0412\u044b\u0439\u0434\u0438\u0442\u0435 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043b\u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u201c\u0418\u043d\u043a\u043e\u0433\u043d\u0438\u0442\u043e\u201d \u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443\u00a0<a href=\"http:\/\/openam.example.org:8080\/openam\/XUI\/?service=ok\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/openam.example.org:8080\/openam\/XUI\/?service=mailru<\/u><\/a><\/p>\n<p>\u0412\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442 \u0432 \u0444\u043e\u0440\u043c\u0443 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 mail.ru, \u0430 \u043f\u043e\u0441\u043b\u0435 &#8212; \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f3d\/4a8\/086\/f3d4a808634e2aa50bf13aeddb649ee8.png\" alt=\"Mail.ru user consent\" width=\"1236\" height=\"692\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f3d\/4a8\/086\/f3d4a808634e2aa50bf13aeddb649ee8.png\"\/><\/p>\n<div><figcaption>Mail.ru user consent<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f, \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 OpenAM \u0441 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f mail.ru.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/594\/cf7\/34e\/594cf734e105e12c9f8641fb7ba94294.png\" alt=\"OpenAM mail.ru user profile\" width=\"2322\" height=\"924\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/594\/cf7\/34e\/594cf734e105e12c9f8641fb7ba94294.png\"\/><\/p>\n<div><figcaption>OpenAM mail.ru user profile<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/869574\/\"> https:\/\/habr.com\/ru\/articles\/869574\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"http:\/\/mail.ru\/\" rel=\"noopener noreferrer nofollow\"><u>Mail.ru<\/u><\/a>\u00a0&#8212; \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0432 \u0420\u043e\u0441\u0441\u0438\u0438. \u0415\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 50 \u043c\u043b\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0448\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u00a0<a href=\"http:\/\/mail.ru\/\" rel=\"noopener noreferrer nofollow\"><u>mail.ru<\/u><\/a>\u00a0\u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437\u00a0<a href=\"https:\/\/github.com\/OpenIdentityPlatform\/OpenAM\" rel=\"noopener noreferrer nofollow\"><u>OpenAM<\/u><\/a>.<\/p>\n<h3>\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\u044f<\/h3>\n<p>\u0423 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u044f\u0449\u0438\u043a \u043d\u0430 mail.ru<\/p>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u00a0<a href=\"https:\/\/o2.mail.ru\/app\/\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/o2.mail.ru\/app\/<\/u><\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u201d<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438, \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>redirect_uri \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435\u00a0<code>&lt;URI OpenAM&gt;\/oauth2c\/OAuthProxy.jsp<\/code>\u00a0, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,\u00a0<code>http:\/\/openam.example.org:8080\/openam\/oauth2c\/OAuthProxy.jsp<\/code><\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0430\u0439\u0442\u201d<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>Mail.ru application settings<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p>\u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 Client Id \u0438 Client Secret. \u041e\u043d\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0432\u0430\u043c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 OpenAM.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u201c\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b\u201d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0447\u0435\u043a\u0431\u043e\u043a\u0441 \u201cWeb\u201d.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>Mail.ru edit application<\/figcaption><\/div>\n<\/figure>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OpenAM<\/h3>\n<p>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c OpenAM \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\u00a0<a href=\"https:\/\/www.3a-systems.ru\/blog\/2024-11-25-openam-docker-quickstart\" rel=\"noopener noreferrer nofollow\"><u>\u0442\u0443\u0442<\/u><\/a>.<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OpenAM<\/h4>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435\u00a0<a href=\"http:\/\/openam.example.org:8080\/openam\/XUI\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/openam.example.org:8080\/openam\/XUI<\/u><\/a>. \u0412 \u043f\u043e\u043b\u0435 \u043b\u043e\u0433\u0438\u043d \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0<code>amadmin<\/code>\u00a0\u0432 \u043f\u043e\u043b\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f, \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 OpenAM. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212;\u00a0<code>passw0rd<\/code>.<\/p>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043c\u0435\u043d\u044e \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 Top Level Realm. \u0412 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 Authentication \u2192 Modules \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\u00a0<code>mailru<\/code>. \u0422\u0438\u043f \u043c\u043e\u0434\u0443\u043b\u044f &#8212; OAuth 2.0 \/ OpenID Connect.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>OpenAM new Mail.ru authentication module<\/figcaption><\/div>\n<\/figure>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/p>\n<\/th>\n<th>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Client Id<\/p>\n<\/td>\n<td>\n<p align=\"left\">Client ID \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f mail.ru<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Client Secret<\/p>\n<\/td>\n<td>\n<p align=\"left\">Client Secret \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f mail.ru<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Authentication Endpoint URL<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/oauth.mail.ru\/login\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/oauth.mail.ru\/login<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Access Token Endpoint URL<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/oauth.mail.ru\/token\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/oauth.mail.ru\/token<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">User Profile Service URL<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/oauth.mail.ru\/userinfo\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/oauth.mail.ru\/userinfo<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Scope<\/p>\n<\/td>\n<td>\n<p align=\"left\">email<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">OAuth2 Access Token Profile Service Parameter name<\/p>\n<\/td>\n<td>\n<p align=\"left\">access_token<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Proxy URL<\/p>\n<\/td>\n<td>\n<p align=\"left\">Redirect URI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.\u00a0<a href=\"http:\/\/openam.example.org:8080\/openam\/oauth2c\/OAuthProxy.jsp\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/openam.example.org:8080\/openam\/oauth2c\/OAuthProxy.jsp<\/u><\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Account Mapper Configuration<\/p>\n<\/td>\n<td>\n<p align=\"left\">id=uid email=mail<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Attribute Mapper Configuration<\/p>\n<\/td>\n<td>\n<p align=\"left\">id=uid email=mail last_name=sn first_name=givenName<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">OpenID Connect validation configuration type<\/p>\n<\/td>\n<td>\n<p align=\"left\">client_secret<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Prompt for password setting and activation code<\/p>\n<\/td>\n<td>\n<p align=\"left\">false<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443\u00a0<code>Save<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438\u00a0<code>mailru<\/code>\u00a0. \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 Top Level Realm. \u0412 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 Authentication \u2192 Chains \u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>OpenAM Mail.ru authentication chain<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0412\u044b\u0439\u0434\u0438\u0442\u0435 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438\u043b\u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u201c\u0418\u043d\u043a\u043e\u0433\u043d\u0438\u0442\u043e\u201d \u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443\u00a0<a href=\"http:\/\/openam.example.org:8080\/openam\/XUI\/?service=ok\" rel=\"noopener noreferrer nofollow\"><u>http:\/\/openam.example.org:8080\/openam\/XUI\/?service=mailru<\/u><\/a><\/p>\n<p>\u0412\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442 \u0432 \u0444\u043e\u0440\u043c\u0443 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 mail.ru, \u0430 \u043f\u043e\u0441\u043b\u0435 &#8212; \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>Mail.ru user consent<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f, \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 OpenAM \u0441 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f mail.ru.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>OpenAM mail.ru user profile<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/869574\/\"> https:\/\/habr.com\/ru\/articles\/869574\/<\/a><br \/><\/br><\/br><\/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-442841","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/442841","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=442841"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/442841\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=442841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=442841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=442841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}