{"id":371720,"date":"2024-05-21T04:55:18","date_gmt":"2024-05-21T04:55:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=371720"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=371720","title":{"rendered":"<span>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OAuth2\/OIDC \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \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<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u043c\u0438 <a href=\"http:\/\/github.com\/OpenIdentityPlatform\/OpenAM\" rel=\"noopener noreferrer nofollow\">OpenAM<\/a> \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 OAuth2\/OIDC. \u041e\u0434\u0438\u043d \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c (Identity Provider), \u0434\u0440\u0443\u0433\u043e\u0439 &#8212; \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c (Service Provider). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0435 OpenAM (SP) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 OpenAM (IdP) \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 OAuth2\/OIDC.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432 OpenAM<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u044b OpenAM, \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b. \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c OpenAM IdP \u0438 SP \u0432 Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445.<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438<\/h3>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u043c\u0435\u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432 \u0438 IP \u0430\u0434\u0440\u0435\u0441 \u0432 \u0444\u0430\u0439\u043b <code>hosts<\/code>,<\/p>\n<pre><code class=\"bash\">127.0.0.1 idp.acme.org sp.mycompany.org <\/code><\/pre>\n<p>\u0412 Windows \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0444\u0430\u0439\u043b <code>hosts<\/code> \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts<\/code> , \u0432 Linux \u0438 Mac \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>\/etc\/hosts<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0432 Docker \u0441\u0435\u0442\u044c \u0434\u043b\u044f OpenAM<\/p>\n<pre><code class=\"bash\">docker network create openam-oauth <\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenAM IdP<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 OpenAM<\/p>\n<pre><code class=\"bash\">docker run -h idp.acme.org -p 8080:8080 --network openam-oauth --name openam-idp openidentityplatform\/openam <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440 OpenAM \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<pre><code class=\"bash\">docker exec -w '\/usr\/openam\/ssoconfiguratortools' openam-idp bash -c \\\\ 'echo \"ACCEPT_LICENSES=true SERVER_URL=http:\/\/idp.acme.org:8080 DEPLOYMENT_URI=\/$OPENAM_PATH BASE_DIR=$OPENAM_DATA_DIR locale=en_US PLATFORM_LOCALE=en_US AM_ENC_KEY= ADMIN_PWD=passw0rd AMLDAPUSERPASSWD=p@passw0rd COOKIE_DOMAIN=idp.acme.org ACCEPT_LICENSES=true DATA_STORE=embedded DIRECTORY_SSL=SIMPLE DIRECTORY_SERVER=idp.acme.org DIRECTORY_PORT=50389 DIRECTORY_ADMIN_PORT=4444 DIRECTORY_JMX_PORT=1689 ROOT_SUFFIX=dc=openam,dc=example,dc=org DS_DIRMGRDN=cn=Directory Manager DS_DIRMGRPASSWD=passw0rd\" > conf.file &amp;&amp; java -jar openam-configurator-tool*.jar --file conf.file' <\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenAM SP<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 OpenAM<\/p>\n<pre><code class=\"bash\">docker run -h sp.mycompany.org -p 8081:8080  --network openam-oauth --name openam-sp openidentityplatform\/openam <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440 OpenAM \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<pre><code class=\"bash\">docker exec -w '\/usr\/openam\/ssoconfiguratortools' openam-sp bash -c \\\\ 'echo \"ACCEPT_LICENSES=true SERVER_URL=http:\/\/sp.mycompany.org:8080 DEPLOYMENT_URI=\/$OPENAM_PATH BASE_DIR=$OPENAM_DATA_DIR locale=en_US PLATFORM_LOCALE=en_US AM_ENC_KEY= ADMIN_PWD=passw0rd AMLDAPUSERPASSWD=p@passw0rd COOKIE_DOMAIN=sp.mycompany.org ACCEPT_LICENSES=true DATA_STORE=embedded DIRECTORY_SSL=SIMPLE DIRECTORY_SERVER=sp.mycompany.org DIRECTORY_PORT=50389 DIRECTORY_ADMIN_PORT=4444 DIRECTORY_JMX_PORT=1689 ROOT_SUFFIX=dc=openam,dc=example,dc=org DS_DIRMGRDN=cn=Directory Manager DS_DIRMGRPASSWD=passw0rd\" > conf.file &amp;&amp; java -jar openam-configurator-tool*.jar --file conf.file' <\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c OpenAM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u043e\u043b\u0438 OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/idp.acme.org:8080\/openam\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam<\/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 <code>amadmin<\/code>, \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, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <code>ADMIN_PWD<\/code> , \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>passw0rd<\/code>.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 realm \u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Dashboard \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>Configure OAuth Provider<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5c7\/522\/612\/5c7522612f14e799377c379fa2a9f2d0.png\" width=\"1420\" height=\"650\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5c7\/522\/612\/5c7522612f14e799377c379fa2a9f2d0.png\"\/><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435, <code>Configure OpenID Connect<\/code> .<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a36\/773\/0f9\/a367730f9b62e131bfb05daae7cbf5f4.png\" width=\"1420\" height=\"663\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a36\/773\/0f9\/a367730f9b62e131bfb05daae7cbf5f4.png\"\/><\/figure>\n<p>\u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Create<\/code> .<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/917\/a4e\/971\/917a4e97188b84f3598f7a0b68f4ba81.png\" width=\"1420\" height=\"1102\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/917\/a4e\/971\/917a4e97188b84f3598f7a0b68f4ba81.png\"\/><\/figure>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\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 OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0435\u0440\u0439\u0434\u0438\u0442\u0435 \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 realm \u0438 \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 <code>Applications<\/code> \u2192 <code>OAuth 2.0<\/code> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/edb\/16d\/302\/edb16d3029901bbf5aefb93d7d42472d.png\" width=\"1420\" height=\"300\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/edb\/16d\/302\/edb16d3029901bbf5aefb93d7d42472d.png\"\/><\/figure>\n<p>\u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>New<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dc8\/9a7\/d06\/dc89a7d06edba888eb6c544344db09ec.png\" width=\"2000\" height=\"419\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dc8\/9a7\/d06\/dc89a7d06edba888eb6c544344db09ec.png\"\/><\/figure>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u043e\u043b\u044f <code>Name<\/code> (client_id) \u0438 <code>Password<\/code> (client_secret). \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Create<\/code> .<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/605\/ed5\/8ed\/605ed58edadfce767c365eb336bc5f21.png\" width=\"2000\" height=\"736\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/605\/ed5\/8ed\/605ed58edadfce767c365eb336bc5f21.png\"\/><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/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\">Redirection URIs<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp\" rel=\"noopener noreferrer nofollow\">http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Scope<\/p>\n<\/td>\n<td>\n<p align=\"left\">openid<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Token Endpoint Authentication Method<\/p>\n<\/td>\n<td>\n<p align=\"left\">client_secret_post<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ID Token Signing Algorithm<\/p>\n<\/td>\n<td>\n<p align=\"left\">RS256<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OAuth2\/OIDC \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/h2>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 OAuth2\/OIDC<\/h3>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c OpenAM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u043e\u043b\u0438 OAuth2\/OIDC \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/openam-sp.example.org:8081\/openam\" rel=\"noopener noreferrer nofollow\">http:\/\/openam-sp.example.org:8081\/openam<\/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 <code>amadmin<\/code>, \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, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <code>ADMIN_PWD<\/code> , \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>passw0rd<\/code>.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 realm \u0438 \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>Authentication<\/code> \u2192 <code>Modules<\/code> . \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443  <code>Add Module<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6cf\/c7c\/a1a\/6cfc7ca1a2fa4b475770b492d701a954.png\" width=\"1420\" height=\"344\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6cf\/c7c\/a1a\/6cfc7ca1a2fa4b475770b492d701a954.png\"\/><\/figure>\n<p>\u0422\u0438\u043f \u043c\u043e\u0434\u0443\u043b\u044f \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>OAuth2\/OpenID Connect<\/code>, \u0438\u043c\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c, \u043f\u0443\u0442\u044c \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 <code>oauth<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/291\/8a3\/73e\/2918a373ec21755165cc7d61ef17e200.png\" width=\"1420\" height=\"421\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/291\/8a3\/73e\/2918a373ec21755165cc7d61ef17e200.png\"\/><\/figure>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Create<\/code>.<\/p>\n<p>\u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<\/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\">test_client<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Client Secret<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0430\u0440\u043e\u043b\u044c, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/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=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/authorize\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/authorize<\/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=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/access_token\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/access_token<\/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=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/tokeninfo\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/tokeninfo<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Scope<\/p>\n<\/td>\n<td>\n<p align=\"left\">openid<\/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\"><a href=\"http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp\" rel=\"noopener noreferrer nofollow\">http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Account Mapper<\/p>\n<\/td>\n<td>\n<p align=\"left\">org.forgerock.openam.authentication.modules.oidc.JwtAttributeMapper<\/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\">sub=uid<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Attribute Mapper<\/p>\n<\/td>\n<td>\n<p align=\"left\">org.forgerock.openam.authentication.modules.oidc.JwtAttributeMapper<\/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\">sub=uid<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Create account if it does not exist<\/p>\n<\/td>\n<td>\n<p align=\"left\">disabled<\/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\">disabled<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Map to anonymous user<\/p>\n<\/td>\n<td>\n<p align=\"left\">disabled<\/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\">.well-known\/openid-configuration_url<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">OpenID Connect validation configuration value<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/.well-known\/openid-configuration\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/.well-known\/openid-configuration<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Name of OpenID Connect ID Token Issuer<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438 OAuth2\/OIDC<\/h3>\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 Service Provider. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 realm  \u0438 \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 <code>Authentication<\/code> \u2192 <code>Chains<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/926\/f45\/c0c\/926f45c0cd504b5411de1945e552dc92.png\" width=\"1420\" height=\"348\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/926\/f45\/c0c\/926f45c0cd504b5411de1945e552dc92.png\"\/><\/figure>\n<p>\u0421\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\/4f1\/e52\/a72\/4f1e52a721c7816eea1ddac772054190.png\" width=\"1420\" height=\"361\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4f1\/e52\/a72\/4f1e52a721c7816eea1ddac772054190.png\"\/><\/figure>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Add a Module<\/code>  \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c <code>oauth<\/code>. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 Criteria \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>Requisite<\/code>. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 <code>OK<\/code> \u0438 \u0434\u0430\u043b\u0435\u0435 <code>Save Changes<\/code> .<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/076\/b32\/529\/076b32529b796651afd73bb3c8cc6dda.png\" width=\"1420\" height=\"680\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/076\/b32\/529\/076b32529b796651afd73bb3c8cc6dda.png\"\/><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Realm<\/h3>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM SP. \u0412 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 <code>Authentication<\/code> \u2192 <code>Settings<\/code> . \u041d\u0430 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0435  <code>User Profile<\/code> \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>Ignore<\/code> . \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0d0\/240\/69e\/0d024069e99c41fcd32cc43ab05bbd2a.png\" width=\"1420\" height=\"637\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0d0\/240\/69e\/0d024069e99c41fcd32cc43ab05bbd2a.png\"\/><\/figure>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM OAuth2\/OIDC Server, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 realm, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Dashboard \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>Subjects<\/code> .<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c <code>testIdp<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7f8\/e80\/1dc\/7f8e801dc1e88916ea93af7dd1914314.png\" width=\"1420\" height=\"753\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7f8\/e80\/1dc\/7f8e801dc1e88916ea93af7dd1914314.png\"\/><\/figure>\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 OpenAM OAuth2\/OIDC Server \u0438 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM OAuth2\/OIDC Client \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 \u0438\u043d\u043a\u043e\u0433\u043d\u0438\u0442\u043e.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 URL \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 OAuth2\/OIDC Client \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 <code>oauth<\/code> <a href=\"http:\/\/sp.mycompany.org:8081\/openam\/XUI\/?service=oauth\" rel=\"noopener noreferrer nofollow\">http:\/\/sp.mycompany.org:8081\/openam\/XUI\/?service=oauth<\/a><\/p>\n<p>\u0412\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442 \u043d\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043d\u0430 OAuth2\/OIDC Server. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f testIdP.<\/p>\n<p>\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <code>test_client<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/af5\/e0e\/913\/af5e0e9134be79daee23fa273b553b50.png\" width=\"1420\" height=\"806\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/af5\/e0e\/913\/af5e0e9134be79daee23fa273b553b50.png\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f <code>Allow<\/code> \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c OpenAM OAuth2\/OIDC Client \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 OpenAM OAuth2\/OIDC Server.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fd5\/9da\/b3c\/fd59dab3c8079519eadfe25edd5aced5.png\" width=\"1420\" height=\"563\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fd5\/9da\/b3c\/fd59dab3c8079519eadfe25edd5aced5.png\"\/><\/figure>\n<\/p>\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\/802631\/\"> https:\/\/habr.com\/ru\/articles\/802631\/<\/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<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u043c\u0438 <a href=\"http:\/\/github.com\/OpenIdentityPlatform\/OpenAM\" rel=\"noopener noreferrer nofollow\">OpenAM<\/a> \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 OAuth2\/OIDC. \u041e\u0434\u0438\u043d \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c (Identity Provider), \u0434\u0440\u0443\u0433\u043e\u0439 &#8212; \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c (Service Provider). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0435 OpenAM (SP) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 OpenAM (IdP) \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 OAuth2\/OIDC.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432 OpenAM<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u044b OpenAM, \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b. \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c OpenAM IdP \u0438 SP \u0432 Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445.<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438<\/h3>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u043c\u0435\u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432 \u0438 IP \u0430\u0434\u0440\u0435\u0441 \u0432 \u0444\u0430\u0439\u043b <code>hosts<\/code>,<\/p>\n<pre><code class=\"bash\">127.0.0.1 idp.acme.org sp.mycompany.org <\/code><\/pre>\n<p>\u0412 Windows \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0444\u0430\u0439\u043b <code>hosts<\/code> \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts<\/code> , \u0432 Linux \u0438 Mac \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>\/etc\/hosts<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0432 Docker \u0441\u0435\u0442\u044c \u0434\u043b\u044f OpenAM<\/p>\n<pre><code class=\"bash\">docker network create openam-oauth <\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenAM IdP<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 OpenAM<\/p>\n<pre><code class=\"bash\">docker run -h idp.acme.org -p 8080:8080 --network openam-oauth --name openam-idp openidentityplatform\/openam <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440 OpenAM \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<pre><code class=\"bash\">docker exec -w '\/usr\/openam\/ssoconfiguratortools' openam-idp bash -c \\\\ 'echo \"ACCEPT_LICENSES=true SERVER_URL=http:\/\/idp.acme.org:8080 DEPLOYMENT_URI=\/$OPENAM_PATH BASE_DIR=$OPENAM_DATA_DIR locale=en_US PLATFORM_LOCALE=en_US AM_ENC_KEY= ADMIN_PWD=passw0rd AMLDAPUSERPASSWD=p@passw0rd COOKIE_DOMAIN=idp.acme.org ACCEPT_LICENSES=true DATA_STORE=embedded DIRECTORY_SSL=SIMPLE DIRECTORY_SERVER=idp.acme.org DIRECTORY_PORT=50389 DIRECTORY_ADMIN_PORT=4444 DIRECTORY_JMX_PORT=1689 ROOT_SUFFIX=dc=openam,dc=example,dc=org DS_DIRMGRDN=cn=Directory Manager DS_DIRMGRPASSWD=passw0rd\" > conf.file &amp;&amp; java -jar openam-configurator-tool*.jar --file conf.file' <\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenAM SP<\/h3>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437 OpenAM<\/p>\n<pre><code class=\"bash\">docker run -h sp.mycompany.org -p 8081:8080  --network openam-oauth --name openam-sp openidentityplatform\/openam <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440 OpenAM \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<pre><code class=\"bash\">docker exec -w '\/usr\/openam\/ssoconfiguratortools' openam-sp bash -c \\\\ 'echo \"ACCEPT_LICENSES=true SERVER_URL=http:\/\/sp.mycompany.org:8080 DEPLOYMENT_URI=\/$OPENAM_PATH BASE_DIR=$OPENAM_DATA_DIR locale=en_US PLATFORM_LOCALE=en_US AM_ENC_KEY= ADMIN_PWD=passw0rd AMLDAPUSERPASSWD=p@passw0rd COOKIE_DOMAIN=sp.mycompany.org ACCEPT_LICENSES=true DATA_STORE=embedded DIRECTORY_SSL=SIMPLE DIRECTORY_SERVER=sp.mycompany.org DIRECTORY_PORT=50389 DIRECTORY_ADMIN_PORT=4444 DIRECTORY_JMX_PORT=1689 ROOT_SUFFIX=dc=openam,dc=example,dc=org DS_DIRMGRDN=cn=Directory Manager DS_DIRMGRPASSWD=passw0rd\" > conf.file &amp;&amp; java -jar openam-configurator-tool*.jar --file conf.file' <\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c OpenAM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u043e\u043b\u0438 OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/idp.acme.org:8080\/openam\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam<\/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 <code>amadmin<\/code>, \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, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <code>ADMIN_PWD<\/code> , \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>passw0rd<\/code>.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 realm \u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Dashboard \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>Configure OAuth Provider<\/code>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435, <code>Configure OpenID Connect<\/code> .<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Create<\/code> .<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\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 OAuth2\/OIDC \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0435\u0440\u0439\u0434\u0438\u0442\u0435 \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 realm \u0438 \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 <code>Applications<\/code> \u2192 <code>OAuth 2.0<\/code> <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>New<\/code><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u043e\u043b\u044f <code>Name<\/code> (client_id) \u0438 <code>Password<\/code> (client_secret). \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Create<\/code> .<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/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\">Redirection URIs<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp\" rel=\"noopener noreferrer nofollow\">http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Scope<\/p>\n<\/td>\n<td>\n<p align=\"left\">openid<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Token Endpoint Authentication Method<\/p>\n<\/td>\n<td>\n<p align=\"left\">client_secret_post<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ID Token Signing Algorithm<\/p>\n<\/td>\n<td>\n<p align=\"left\">RS256<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OAuth2\/OIDC \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/h2>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 OAuth2\/OIDC<\/h3>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c OpenAM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u043e\u043b\u0438 OAuth2\/OIDC \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/openam-sp.example.org:8081\/openam\" rel=\"noopener noreferrer nofollow\">http:\/\/openam-sp.example.org:8081\/openam<\/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 <code>amadmin<\/code>, \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, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 <code>ADMIN_PWD<\/code> , \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>passw0rd<\/code>.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 realm \u0438 \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>Authentication<\/code> \u2192 <code>Modules<\/code> . \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443  <code>Add Module<\/code>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0438\u043f \u043c\u043e\u0434\u0443\u043b\u044f \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>OAuth2\/OpenID Connect<\/code>, \u0438\u043c\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c, \u043f\u0443\u0442\u044c \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 <code>oauth<\/code>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Create<\/code>.<\/p>\n<p>\u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<\/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\">test_client<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Client Secret<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0430\u0440\u043e\u043b\u044c, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/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=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/authorize\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/authorize<\/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=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/access_token\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/access_token<\/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=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/tokeninfo\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/tokeninfo<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Scope<\/p>\n<\/td>\n<td>\n<p align=\"left\">openid<\/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\"><a href=\"http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp\" rel=\"noopener noreferrer nofollow\">http:\/\/sp.mycompany.org:8081\/openam\/oauth2c\/OAuthProxy.jsp<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Account Mapper<\/p>\n<\/td>\n<td>\n<p align=\"left\">org.forgerock.openam.authentication.modules.oidc.JwtAttributeMapper<\/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\">sub=uid<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Attribute Mapper<\/p>\n<\/td>\n<td>\n<p align=\"left\">org.forgerock.openam.authentication.modules.oidc.JwtAttributeMapper<\/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\">sub=uid<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Create account if it does not exist<\/p>\n<\/td>\n<td>\n<p align=\"left\">disabled<\/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\">disabled<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Map to anonymous user<\/p>\n<\/td>\n<td>\n<p align=\"left\">disabled<\/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\">.well-known\/openid-configuration_url<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">OpenID Connect validation configuration value<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\/.well-known\/openid-configuration\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2\/.well-known\/openid-configuration<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Name of OpenID Connect ID Token Issuer<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/idp.acme.org:8080\/openam\/oauth2\" rel=\"noopener noreferrer nofollow\">http:\/\/idp.acme.org:8080\/openam\/oauth2<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438 OAuth2\/OIDC<\/h3>\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 Service Provider. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 realm  \u0438 \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 <code>Authentication<\/code> \u2192 <code>Chains<\/code>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\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\"><\/figure>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Add a Module<\/code>  \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c <code>oauth<\/code>. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 Criteria \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>Requisite<\/code>. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 <code>OK<\/code> \u0438 \u0434\u0430\u043b\u0435\u0435 <code>Save Changes<\/code> .<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Realm<\/h3>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM SP. \u0412 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 <code>Authentication<\/code> \u2192 <code>Settings<\/code> . \u041d\u0430 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0435  <code>User Profile<\/code> \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>Ignore<\/code> . \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM OAuth2\/OIDC Server, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 realm, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Dashboard \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 <code>Subjects<\/code> .<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c <code>testIdp<\/code><\/p>\n<figure class=\"full-width\"><\/figure>\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 OpenAM OAuth2\/OIDC Server \u0438 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 OpenAM OAuth2\/OIDC Client \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 \u0438\u043d\u043a\u043e\u0433\u043d\u0438\u0442\u043e.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 URL \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 OAuth2\/OIDC Client \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 <code>oauth<\/code> <a href=\"http:\/\/sp.mycompany.org:8081\/openam\/XUI\/?service=oauth\" rel=\"noopener noreferrer nofollow\">http:\/\/sp.mycompany.org:8081\/openam\/XUI\/?service=oauth<\/a><\/p>\n<p>\u0412\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442 \u043d\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043d\u0430 OAuth2\/OIDC Server. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f testIdP.<\/p>\n<p>\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <code>test_client<\/code><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f <code>Allow<\/code> \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c OpenAM OAuth2\/OIDC Client \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 OpenAM OAuth2\/OIDC Server.<\/p>\n<figure class=\"full-width\"><\/figure>\n<\/p>\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\/802631\/\"> https:\/\/habr.com\/ru\/articles\/802631\/<\/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-371720","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/371720","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=371720"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/371720\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}