{"id":11652,"date":"2018-09-17T16:45:21","date_gmt":"2018-09-17T14:45:21","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/"},"modified":"2024-09-11T08:51:00","modified_gmt":"2024-09-11T06:51:00","slug":"user-session-lost-using-adf-application","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/","title":{"rendered":"User Session lost using ADF Application"},"content":{"rendered":"<p>In one of my missions, I was involved in a new Fusion Middleware 12C (12.2.1.2) installation with an ADF application and an Oracle report server instance deployments .<br \/>\nThis infrastructure is protected using an Access Manager  Single Sign on Server.<br \/>\nIn Production, the complete environment is fronted by a WAF server ending the https.<br \/>\nOn the TEST The complete environment is fronted by a SSL reverse proxy ending the https.<\/p>\n<p>In the chosen architecture, all Single Sign On request goes directly through the reverse proxy to the OAM servers.<br \/>\nThe Application requests and the reports requests are routed through a HTTP server having the WebGate installed.<\/p>\n<p>Below is an extract of the SSL part of the reverse Proxy configuration:<br \/>\n<code># SSL Virtual Host<br \/>\n&lt;VirtualHost 10.0.1.51:443&gt;<br \/>\n   ServerName https:\/\/mySite.com<br \/>\n   ErrorLog logs\/ssl_errors.log<br \/>\n   TransferLog logs\/ssl_access.log<br \/>\n   HostNameLookups off<br \/>\n   ProxyPreserveHost On<br \/>\n   ProxyPassReverse  \/oam  http:\/\/appserver.example.com:14100\/oam<br \/>\n   ProxyPass         \/oam  http:\/\/appserver.example.com:14100\/oam<br \/>\n   ProxyPassReverse  \/myCustom-sso-web  http:\/\/appserver.example.com:14100\/myCustom-sso-web<br \/>\n   ProxyPass         \/myCustom-sso-web  http:\/\/appserver.example.com:14100\/myCustom-sso-web<br \/>\n   ProxyPass         \/reports  http:\/\/appserver.example.com:7778\/reports<br \/>\n   ProxyPassReverse  \/reports    http:\/\/appserver.example.com:7778\/reports<br \/>\n   ProxyPass         \/myApplication  http:\/\/appserver.example.com:7778\/myApplication<br \/>\n   ProxyPassReverse  \/myApplication  http:\/\/appserver.example.com:7778\/myApplication<br \/>\n   # SSL configuration<br \/>\n   SSLEngine  on<br \/>\n   SSLCertificateFile \/etc\/httpd\/conf\/ssl\/myStite_com.crt<br \/>\n   SSLCertificateKeyFile \/etc\/httpd\/conf\/ssl\/mySite_com.key<br \/>\n&lt;\/VirtualHost&gt;<\/code><br \/>\nHTTP Server Virtual hosts:<br \/>\n<code># Local requests<br \/>\nListen 7778<br \/>\n&lt;VirtualHost *:7778&gt;<br \/>\n    ServerName http:\/\/appserver.example.com:7778<br \/>\n    # Rewrite included for OAM logout redirection<br \/>\n    RewriteRule ^\/oam\/(.*)$ http:\/\/appserver.example.com:14100\/oam\/$1<br \/>\n    RewriteRule ^\/myCustom-sso-web\/(.*)$ http:\/\/appserver.example.com:14100\/myCustom-sso-sso-web\/$1<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>&lt;VirtualHost *:7778&gt;<br \/>\n    ServerName https:\/\/mySite.com:443<br \/>\n&lt;\/VirtualHost&gt;<\/code><br \/>\nThe ADf application and the reports servers mapping is done using custom configuration files included in http.conf files<br \/>\n<code>#adf.conf<br \/>\n#----------<br \/>\n&lt;Location \/myApplication&gt;<br \/>\n        SetHandler weblogic-handler<br \/>\n        WebLogicCluster appserver.example.com:9001,appserver1.example.com:9003<br \/>\n        WLProxySSLPassThrough ON<br \/>\n&lt;\/Location&gt;<\/p>\n<p># Force caching for image files<br \/>\n&lt;FilesMatch \".(jpg|jpeg|png|gif|swf)$\"&gt;<br \/>\n    Header unset Surrogate-Control<br \/>\n    Header unset Pragma<br \/>\n    Header unset Cache-Control<br \/>\n    Header unset Last-Modified<br \/>\n    Header unset Expires<br \/>\n    Header set Cache-Control \"max-age=86400, public\"<br \/>\n    Header set Surrogate-Control \"max-age=86400\"<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p>#reports.conf<br \/>\n#-------------<br \/>\n&lt;Location \/reports&gt;<br \/>\n        SetHandler weblogic-handler<br \/>\n        WebLogicCluster    appserver.example.com:9004,appserver1.example.com:9004<br \/>\n        DynamicServerList OFF<br \/>\n        WLProxySSLPassThrough ON<br \/>\n&lt;\/Location&gt;<\/code><br \/>\nAfter configuring a ADF application and the Reports Server to be protected through the WebGate, the users can connect and work without any issue during the first 30 minutes.<br \/>\nThen they loose their sessions. We thought first it was related to the session timeouts or inactivity timeout.<br \/>\nWe increased the values of those timeouts without success.<br \/>\nWe checked the logs and found out that the issue was related to the OAM and WebGate cookies.<\/p>\n<p>    The OAM Server gets and sets a cookie named OAM_ID.<br \/>\n    Each WebGate gets and sets a cookie named OAMAuthnCookie_ + the host name and port.<\/p>\n<p>The contents of the cookies are:<\/p>\n<p>    Authenticated User Identity (User DN)<br \/>\n    Authentication Level<br \/>\n    IP Address<br \/>\n    SessionID (Reference to Server side session \u2013 OAM11g Only)<br \/>\n    Session Validity (Start Time, Refresh Time)<br \/>\n    Session InActivity Timeouts (Global Inactivity, Max Inactivity)<br \/>\n    Validation Hash<\/p>\n<p>The validity of a WebGate handled user session is 30 minutes by default and then the WebGate checks the OAM cookies.<br \/>\nThose cookies are secured and were lost because they were not forwarded by the WAF or the reverse proxy due to ending of the https. \t<\/p>\n<p>We needed to changes the SSL reverse proxy configuration to send the correct information to the WebLogic Server and HTTP Server about ending SSL at reverse proxy level.<br \/>\nThis has been done adding two HTTP Headers to the request before sending them to the Oracle Access Manager or Fusion Middleware HTTP Server.<\/p>\n<p># For the WebLogic Server to be informed about SSL ending at reverse proxy level<br \/>\nRequestHeader set WL-Proxy-SSL true<br \/>\n# For the Oracle HTTP Server to take the secure cookies in account<br \/>\nRequestHeader set X-Forwarded-Proto &#8220;https&#8221;<\/p>\n<p>The WAF needed to be configured to do the same HTTP Headers adds in the production environment.<\/p>\n<p>After those changes, the issue was solved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In one of my missions, I was involved in a new Fusion Middleware 12C (12.2.1.2) installation with an ADF application and an Oracle report server instance deployments . This infrastructure is protected using an Access Manager Single Sign on Server. In Production, the complete environment is fronted by a WAF server ending the https. On [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[],"type_dbi":[],"class_list":["post-11652","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>User Session lost using ADF Application - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"User Session lost using ADF Application\" \/>\n<meta property=\"og:description\" content=\"In one of my missions, I was involved in a new Fusion Middleware 12C (12.2.1.2) installation with an ADF application and an Oracle report server instance deployments . This infrastructure is protected using an Access Manager Single Sign on Server. In Production, the complete environment is fronted by a WAF server ending the https. On [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-17T14:45:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-11T06:51:00+00:00\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"User Session lost using ADF Application\",\"datePublished\":\"2018-09-17T14:45:21+00:00\",\"dateModified\":\"2024-09-11T06:51:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\"},\"wordCount\":438,\"commentCount\":0,\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\",\"name\":\"User Session lost using ADF Application - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2018-09-17T14:45:21+00:00\",\"dateModified\":\"2024-09-11T06:51:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User Session lost using ADF Application\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"User Session lost using ADF Application - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/","og_locale":"en_US","og_type":"article","og_title":"User Session lost using ADF Application","og_description":"In one of my missions, I was involved in a new Fusion Middleware 12C (12.2.1.2) installation with an ADF application and an Oracle report server instance deployments . This infrastructure is protected using an Access Manager Single Sign on Server. In Production, the complete environment is fronted by a WAF server ending the https. On [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/","og_site_name":"dbi Blog","article_published_time":"2018-09-17T14:45:21+00:00","article_modified_time":"2024-09-11T06:51:00+00:00","author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"User Session lost using ADF Application","datePublished":"2018-09-17T14:45:21+00:00","dateModified":"2024-09-11T06:51:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/"},"wordCount":438,"commentCount":0,"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/","url":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/","name":"User Session lost using ADF Application - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2018-09-17T14:45:21+00:00","dateModified":"2024-09-11T06:51:00+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/user-session-lost-using-adf-application\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"User Session lost using ADF Application"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=11652"}],"version-history":[{"count":1,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11652\/revisions"}],"predecessor-version":[{"id":34712,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11652\/revisions\/34712"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=11652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=11652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=11652"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=11652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}