<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Securing Digital Identity - Medium]]></title>
        <description><![CDATA[Identity &amp; Access Management - Medium]]></description>
        <link>https://medium.com/forgerock?source=rss----779ff1820897---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Securing Digital Identity - Medium</title>
            <link>https://medium.com/forgerock?source=rss----779ff1820897---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:38:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/forgerock" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Enforce AuthZ Policies with ForgeRock Identity Gateway (IG)]]></title>
            <link>https://medium.com/forgerock/enforce-authz-policies-with-forgerock-identity-gateway-ig-1103e1a94218?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/1103e1a94218</guid>
            <category><![CDATA[forgerock]]></category>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[access-management]]></category>
            <category><![CDATA[identitygateway]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Fri, 04 Oct 2019 21:03:26 GMT</pubDate>
            <atom:updated>2019-10-04T21:03:26.706Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we’ll see how to enforce Authorization (Auth-Z) configured in Access Management through an agent-less product offered by ForgeRock called <strong>Identity Gateway (IG)</strong>. IG is essentially a reverse proxy with specialized session management and credentials replay functionality. IG in this example will be our Policy Enforcement Point (PEP) and AM will act as a Policy Decision Point (PDP).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FA_P8QcvjD_4%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DA_P8QcvjD_4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FA_P8QcvjD_4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/241af66dd797c202a66faa92a6afc434/href">https://medium.com/media/241af66dd797c202a66faa92a6afc434/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1103e1a94218" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/enforce-authz-policies-with-forgerock-identity-gateway-ig-1103e1a94218">Enforce AuthZ Policies with ForgeRock Identity Gateway (IG)</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ForgeRock OpenDJ Performance Tuning]]></title>
            <link>https://medium.com/forgerock/forgerock-opendj-performance-tuning-1e594d95ce5e?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/1e594d95ce5e</guid>
            <category><![CDATA[tuning]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[opendj]]></category>
            <category><![CDATA[forgerock]]></category>
            <category><![CDATA[identity-management]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Wed, 14 Aug 2019 17:54:18 GMT</pubDate>
            <atom:updated>2019-08-15T18:57:49.162Z</atom:updated>
            <content:encoded><![CDATA[<h3>ForgeRock OpenDJ/Directory Services Performance Tuning</h3><p>OpenDJ also known as Directory Services is ForgeRock’s very own directory server a fork of OpenDS and implements a wide range of LDAP related standards including full compliance with LDAPv3. In this article, we’ll go over some of the tuning parameters that can help OpenDJ achieve performance. Most of these parameters are found in backstage documentation and a few are based on personal experience working with the product.</p><p>I cannot stress this enough but tuning a JVM application like OpenDJ is an ongoing process and must be reevaluated if there’s a change in internal or external factors. At minimum, you want to revisit tuning every quarter and see how it’s performing and whether it requires any further tweaks.</p><h3>Java Virtual Machine (JVM) Tuning</h3><p>Garbage Collection (GC) is a major part of JVM tuning and for that we need to understand the current GC activity. To do this, we will log GC data to a separate log file for further analysis. And below are the parameters we will use to output GC data:</p><pre>// Prints details about promotion failure<br>-XX:+PrintPromotionFailure</pre><pre>// Prints free list statistics for each Young/Old collection<br>-XX:PrintFLSStatistics=1</pre><pre>// Prints threshold and ages of objects in New Generation<br>-XX:+PrintTenuringDistribution</pre><pre>// Prints GC details<br>-XX:+PrintGCDetails</pre><pre>// Prints GC timestamp and datetime details<br>-XX:+PrintGCTimeStamps<br>-XX:+PrintGCDateStamps</pre><pre>// Prints cause of GC<br>-XX:+PrintGCCause</pre><pre>// Outputs data to a separate log file<br>-Xloggc:[FILENAME]</pre><pre>// # of log GC files, depends upon use case<br>-XX:NumberOfGCLogFiles=10</pre><pre>// Rotate GC files<br>-XX:+UseGCLogFileRotation</pre><pre>// Log file size - Keep this small for portability<br>-XX:GCLogFileSize=5m</pre><p>I would recommend running your DJ with the above parameters for a few days in order to capture as much data possible. And once you have the data, I would suggest running it through a tool like “gceasy.io” or an offline tool of your choice. Once you are done with capturing GC data, don’t forget to tune these parameters down to avoid excessive logging.</p><p>Having done similar analysis gazillion times, I would recommend trying the below JVM parameters. And just so that we are clear - tuning is not one size fit all approach and highly varies for every use case. I would <strong>highly recommend</strong> not to solely rely on these parameters and duly test your configuration in a lower environment before promoting to a production environment.</p><pre>// Concurrently runs GC while application threads are in RUNNABLE state<br>-XX:+UseConcMarkSweepGC</pre><pre>// Disables any explicit GC invocation. E.g. System.gc()<br>-XX:+DisableExplicitGC</pre><pre>// Enables use of compressed 32 bit OOPS in 64 bit JVM to effectively improve CPU cache efficiency<br>-XX:+UseCompressedOops</pre><pre>// Kick-in CMS when Old Generation is 75 percent full <br>-XX:CMSInitiatingOccupancyFraction=75</pre><pre>// To be used in conjunction with above parameter<br>-XX:+UseCMSInitiatingOccupancyOnly</pre><pre>// Instructs to run collection in Young before doing Full GC<br>-XX:+ScavengeBeforeFullGC</pre><pre>// Instructs to run collection in Young before CMS remark phase<br>-XX:+CMSScavengeBeforeRemark</pre><pre>// Min heap size - Tweak as necessary<br>-Xms6g</pre><pre>// Max heap size - Tweak as necessary<br>-Xmx8g</pre><pre>// Young Generation Max Size - Tweak as Necessary<br>-XX:MaxNewSize=3g</pre><pre>// Young Generation Min Size - Tweak as Necessary<br>-XX:NewSize=3g</pre><pre>// Perm Generation - this should suffice most requirements<br>-XX:MaxPermSize=256m</pre><p><strong>Young and Old Generation</strong></p><p>If you have set the values of -Xmsand -Xmx to be identical — I would recommend testing the opposite. Setting the values to be same — disables the “intelligent” behaviour of JVM to make memory recommendations for itself. For example, let’s say you have set both the parameters to 8 GB but what if JVM doesn’t need 8 GB at all times. What if the peak usage on certain days/time is only 6GB. In that case, running GC against 8 GB would take more time as compared to 6GB. The greater the heap size more time it will take to run the garbage collection.</p><p>Now as mentioned earlier, there’s no hard set rule and you will need to try and test this out in your environment. I would recommend running a benchmark against your DJ in a lower environment and collect 75 percentile and peak usage. I would then set the -Xms to the value of 75th percentile value and -Xmx with the peak usage. You may also want to take into consideration any internal/external factors specific to your usage.</p><h3>DB Cache</h3><p>Continuing into the tuning, it is also important to look into memory requirements set for the database cache. The feature allows DJ to cache backend data in-memory for faster response times. When the backend cannot be fully cached, the DB needs to access records from log files. Since only a portion of the files can be opened at a time, the DB keeps closing them and opening the ones it needs. Each close does a disk sync, which has a large penalty on performance. So in order to avoid this to occur, we need to allocate and tweak the memory allocated towards the database cache. Now prior to version 6.5, the DB cache size was set individually for each JE backend using the property db-cache-percent . This has changed in version 6.5 where a shared cache is used instead by default. I would recommend going through the official DJ documentation on this topic.</p><h3>VM Swap (Optional)</h3><p>If you notice your VM is constantly swapping GBs of data, I would recommend look into tweaking the swapinessvalue of your VM. If you happen to have lots of extra memory available, I would suggest tweaking the default swapiness value from 40 to 20 . Setting the value to 20 just means, the Linux Kernel will start swapping or using disk when RAM is 80% full. This would increase the overall performance of your VM since the early use of disk is delayed until RAM is 80% full.</p><h3>On-Going Initiative</h3><p>To wrap up — I would again say that tuning a JVM application is an on-going initiative and you will have to revisit this topic at least every quarter if not more. It’s like turning a bolt using a ranch — you will need to know which ranch to use, how much pressure to apply, which direction to turn, and will need to revisit when it loosens again. That is all for now on the tuning and if you have any questions or feedback, please leave it in the comment section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e594d95ce5e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/forgerock-opendj-performance-tuning-1e594d95ce5e">ForgeRock OpenDJ Performance Tuning</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MFA Login using FIDO2 Yubikey security key on OpenAM 6.5.x]]></title>
            <link>https://medium.com/forgerock/mfa-login-using-fido2-yubikey-security-key-on-openam-6-5-x-6721533e7f87?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/6721533e7f87</guid>
            <category><![CDATA[openam]]></category>
            <category><![CDATA[yubikey]]></category>
            <category><![CDATA[fido2]]></category>
            <category><![CDATA[mfa]]></category>
            <category><![CDATA[forgerock]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Mon, 22 Apr 2019 12:35:11 GMT</pubDate>
            <atom:updated>2019-11-26T22:25:14.115Z</atom:updated>
            <content:encoded><![CDATA[<p>With the release of OpenAM or Access Management version 6.5, ForgeRock announced support for FIDO2 authentication. FIDO2 is an open authentication standard that consists of Web Authentication a.k.a WebAuthn and the FIDO2 Client to Authenticator Protocol (CTAP2) to deliver FIDO2 MFA authentication experience. In this article, we’ll use YubiKey 5 Series a multi-protocol security key to deliver MFA Login on OpenAM version 6.5.x. You are free to experiment with your own FIDO2 security key and by no means YubiKey is a requirement. There are a few other options available in the market including Google’s Titan, Solo, etc.</p><p>Before we dive deeper, I do want to call out a few things. First, OpenAM’s WebAuthn tree node still have a few limitations and I suggest visiting documentation to see what is not covered in version 6.5.x. Second, FIDO2 requires communication over HTTPS. If you are terminating SSL at Layer 7 or Layer 4 and OpenAM itself is running on HTTP, your WebAuthn Authentication/Registration will likely fail with the below error message. The reason for this error is the failed “origin” validation. T̶h̶e̶ ̶s̶o̶l̶u̶t̶i̶o̶n̶ ̶i̶s̶ ̶t̶o̶ ̶i̶m̶p̶l̶e̶m̶e̶n̶t̶ ̶e̶n̶d̶-̶t̶o̶-̶e̶n̶d̶ ̶H̶T̶T̶P̶S̶ ̶f̶o̶r̶ ̶O̶p̶e̶n̶A̶M̶.̶</p><pre>origin in response not valid for the actual origin</pre><p><strong>Update</strong>: If your architecture does not incorporate end-to-end HTTPS, I would recommend looking at the service called “Base URL Source Service” as suggested by one of my readers in the responses below.</p><h3>Demo</h3><p>For this demo, I will showcase the following features:</p><ul><li>WebAuthn Registration to register a FIDO2 security key;</li><li>WebAuthn Authentication using FIDO2 security key;</li><li>OpenAM’s Authentication Trees;</li><li>Displaying a message using MessageNode for device registration;</li><li>Login using Recovery Codes;</li><li>Minor debugging for common pitfalls;</li><li>Uses Chrome and Firefox for FIDO2 demo.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyGmLugocs0w%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyGmLugocs0w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyGmLugocs0w%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/63dadc5065539e8400fb2d125d88b55f/href">https://medium.com/media/63dadc5065539e8400fb2d125d88b55f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6721533e7f87" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/mfa-login-using-fido2-yubikey-security-key-on-openam-6-5-x-6721533e7f87">MFA Login using FIDO2 Yubikey security key on OpenAM 6.5.x</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ForgeRock AM 6.5 Deployment on K8S]]></title>
            <link>https://medium.com/forgerock/forgerock-am-6-5-deployment-on-k8s-78da7330dd98?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/78da7330dd98</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[forgerock]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[identity-management]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 14:13:43 GMT</pubDate>
            <atom:updated>2018-12-05T14:16:17.731Z</atom:updated>
            <content:encoded><![CDATA[<p>In this Medium publication, my goal is to discuss and provide information on how to configure/install/upgrade certain products offered by ForgeRock and primarily <strong>OpenAM</strong> and <strong>OpenIDM</strong>. For these articles to be practical and hands-on, and where applicable I will provide companion videos via my <a href="https://www.youtube.com/channel/UCkqtvGQh_RSnrXUwW-ElvpQ"><strong>YouTube channel</strong></a> and source-code will be available on <a href="https://github.com/sqoopdata/forgerock-platform.git"><strong>Github</strong></a>. With intro out of the way, let’s get our hands dirty.</p><p>In this article, we will see how to install ForgeRock Access Management version 6.5.0 a.k.a OpenAM. I will use <strong>Kubernetes</strong> (K8S) to orchestrate <strong>Docker</strong> based containers running ForgeRock platform. The use of K8S is opinionated and to quickly get up and running, and by no means we discuss any best practices around K8S in this article. Please note this is not a production grade deployment and is rather meant for development/testing purposes.</p><h4>Technology Stack:</h4><ul><li>ForgeRock Access Management 6.5.0</li><li>Tomcat v8.5.35</li><li>OpenJDK v1.8.0_111</li><li>K8S via Docker for Desktop</li></ul><p>Step-by-step instructions are provided in the video but at a high-level we’ll be to do the following:</p><ul><li>Build AM 6.5.0 Docker image;</li><li>Deploy AM 6.5.0 via K8S Deployment;</li><li>Expose K8S deployment using NodePort service.</li></ul><h4>Dockerize AM 6.5 using Dockerfile</h4><pre>FROM java:8-jre</pre><pre># Optional set of tools for debugging<br>RUN apt-get update \<br>    &amp;&amp; apt-get install telnet \<br>    &amp;&amp; apt-get install dnsutils -y</pre><pre>ENV CATALINA_HOME /usr/local/tomcat<br>ENV PATH $CATALINA_HOME/bin:$PATH<br>RUN mkdir -p &quot;$CATALINA_HOME&quot;<br>WORKDIR $CATALINA_HOME</pre><pre># See <a href="https://www.apache.org/dist/tomcat/tomcat-8/KEYS">https://www.apache.org/dist/tomcat/tomcat-8/KEYS</a><br>RUN gpg --keyserver pool.sks-keyservers.net --recv-keys \<br>05AB33110949707C93A279E3D3EFE6B686867BA6 \<br>07E48665A34DCAFAE522E5E6266191C37C037D42 \<br>47309207D818FFD8DCD3F83F1931D684307A10A5 \<br>541FBE7D8F78B25E055DDEE13C370389288584E7 \<br>61B832AC2F1C5A90F0F9B00A1C506407564C17A3 \<br>79F7026C690BAA50B92CD8B66A3AD3F4F22C4FED \<br>9BA44C2621385CB966EBA586F72C284D731FABEE \<br>A27677289986DB50844682F8ACB77FC2E86E29AC \<br>A9C5DF4D22E99998D9875A5110C01C5A2F6059E7 \<br>DCFD35E0BF8CA7344752DE8B6FB21E8933C60243 \<br>F3A04C595DB5B6A5F1ECA43E3B7BBB100D811BBE \<br>F7DA48BB64BCB84ECBA7EE6935CD23C10D498E23</pre><pre>ENV TOMCAT_MAJOR 8<br>ENV TOMCAT_VERSION 8.5.35<br>ENV TOMCAT_TGZ_URL <a href="https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz">https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz</a></pre><pre>RUN set -x \<br>    &amp;&amp; curl -fSL &quot;$TOMCAT_TGZ_URL&quot; -o tomcat.tar.gz \<br>    &amp;&amp; curl -fSL &quot;$TOMCAT_TGZ_URL.asc&quot; -o tomcat.tar.gz.asc \<br>    &amp;&amp; gpg --verify tomcat.tar.gz.asc \<br>    &amp;&amp; tar -xvf tomcat.tar.gz --strip-components=1 \<br>    &amp;&amp; rm bin/*.bat \<br>    &amp;&amp; rm tomcat.tar.gz*</pre><pre>EXPOSE 8080<br>ENV AM_VERSION 6.5.0</pre><pre>ADD ./artifacts/AM-${AM_VERSION}.zip /tmp</pre><pre>RUN unzip /tmp/AM-${AM_VERSION}.zip -d /opt \<br>    &amp;&amp; cp /opt/openam/AM-${AM_VERSION}.war $CATALINA_HOME/webapps/openam.war \<br>    &amp;&amp; rm /tmp/AM-${AM_VERSION}.zip</pre><pre>ENV AM_HOME /opt/openam<br>ENV PATH $AM_HOME:$PATH</pre><pre>CMD [&quot;catalina.sh&quot;, &quot;run&quot;]</pre><h4>K8S Configuration</h4><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: am<br>  labels:<br>    app: am<br>    type: accessmanagement<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: am<br>  template:<br>    metadata:<br>      labels:<br>        app: am<br>    spec:<br>      containers:<br>        - name: am<br>          image: sqoopdata/am:1.0<br>          ports:<br>          - containerPort: 8080<br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: am<br>  labels:<br>    app: am<br>spec:<br>  type: NodePort<br>  ports:<br>  - port: 8080<br>  selector:<br>    app: am</pre><p>Please watch the companion video for detailed steps from start to finish. And don’t forget to hit “<strong>Subscribe</strong>” for notifications on future videos.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmdobfjoLKYM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmdobfjoLKYM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmdobfjoLKYM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c12fd0df407fed48a29e0e19a9bbe551/href">https://medium.com/media/c12fd0df407fed48a29e0e19a9bbe551/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78da7330dd98" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/forgerock-am-6-5-deployment-on-k8s-78da7330dd98">ForgeRock AM 6.5 Deployment on K8S</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implicitly invoke REALM through FQDN a.k.a DNS Aliases]]></title>
            <link>https://medium.com/forgerock/implicitly-invoke-realm-through-fqdn-a-k-a-dns-aliases-343c29d28cf?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/343c29d28cf</guid>
            <category><![CDATA[forgerock]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[openam]]></category>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[identity]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Thu, 29 Nov 2018 16:16:03 GMT</pubDate>
            <atom:updated>2018-11-29T16:23:23.381Z</atom:updated>
            <content:encoded><![CDATA[<p>If you do not wish to explicitly configure a realm ?realm=thirdParty in your URL, you have the option to implicitly configure realms to be associated with specific Fully Qualified Domain Name (FQDN).</p><blockquote>For example, consider a deployment with the following characteristics:</blockquote><blockquote><strong>*</strong> The FQDN for AM and the top level realm is openam.example.com.</blockquote><blockquote><strong>*</strong> AM also services realm1.example.com, and realm2.example.com. In other words, AM receives all HTTP(S) connections for these host names. Perhaps they share an IP address, or AM listens on all interfaces.</blockquote><blockquote>Without applying DNS aliases to the relevant realm, when a user visits http://realm1.example.com:8080/openam, AM redirects that user to the top level realm, http://openam.example.com:8080/openam. If the authenticating user is present only in realm1, then authentication fails even with correct credentials.</blockquote><blockquote>If no DNS alias is configured for a realm, realm1 users must visit URLs such as http://openam.example.com:8080/openam/XUI/<strong>?realm</strong>=/realm1#login. This format of URL reveals the top level realm, and exposes extra information about the service.</blockquote><h3>It’s not working?</h3><p>The addition of DNS aliases using the AM console also adds FQDN mappings to the AM server. But I have seen scenarios at least in older versions like OpenAM 11 where it does not add this mapping. So do confirm you have the following property set:</p><ul><li>com.sun.identity.server.fqdnMap — AM 5+ and available through Deployment &gt; Servers &gt; <em>Server Name</em> &gt; Advanced.</li><li>com.sun.identity.agents.config.fqdn.mapping[openam.sqoopdata.local]=openam.sqoopdata.local — OpenAM 11+ and available through Default Site Settings or through individual server.</li></ul><p>If you are using OpenAM 10 which btw has already hit EOSL, you could be running into <a href="https://bugster.forgerock.org/jira/browse/OPENAM-1831">OpenAM-1831</a>.</p><p>And if you toggle debug level of Authentication to Message you would be able to assert if a given URL matched any of the configured FQDNs.</p><p>Still having issues? Please leave a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=343c29d28cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/implicitly-invoke-realm-through-fqdn-a-k-a-dns-aliases-343c29d28cf">Implicitly invoke REALM through FQDN a.k.a DNS Aliases</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s wrong with localhost? Why FQDN?]]></title>
            <link>https://medium.com/forgerock/whats-wrong-with-localhost-why-fqdn-bdb7a2868f0d?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/bdb7a2868f0d</guid>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[digital-identity]]></category>
            <category><![CDATA[forgerock]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Thu, 29 Nov 2018 04:41:39 GMT</pubDate>
            <atom:updated>2018-11-29T16:22:42.598Z</atom:updated>
            <content:encoded><![CDATA[<p>Long story short — it’s because of<strong> browser cookies</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OktFw9ju8kfTDe4IWyRV7A.jpeg" /></figure><p>OpenAM or AM relies on browser cookies which are returned based on the domain name that is configured for your OpenAM installation. Major browsers including Chrome, Firefox and IE stopped accepting browser cookies on localhost. This is mainly due to <a href="https://tools.ietf.org/html/rfc6265#section-5.2.3">HTTP State Management Mechanism</a> a.k.a HTTP Cookie specification. As per the spec, you can set the cookie domain name value to an empty string for host-only cookies or to any non-top level domain. For example, if you install AM and use am.sqoopdata.com as the host, you can set the cookie domain name as sqoopdata.com.</p><blockquote>If the first character of the attribute-value string is %x2E (“.”):</blockquote><blockquote>Let cookie-domain be the <strong>attribute-value</strong> without the leading %x2E<br>(“.”) character.</blockquote><blockquote>Otherwise: Let cookie-domain be the <strong>entire attribute-value</strong>.</blockquote><p>Also, important is to understand — you cannot set any Top-Level Domain (TLD) as your cookie domain as browsers like Chrome, Firefox and IE will reject it. For a list of ICANN TLDs, you can <a href="https://publicsuffix.org/list/effective_tld_names.dat">visit this link</a>. And for production deployments, make sure the FQDN is properly assigned using DNS server.</p><p>Still having an issue? Please leave a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdb7a2868f0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/whats-wrong-with-localhost-why-fqdn-bdb7a2868f0d">What’s wrong with localhost? Why FQDN?</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAML 2.0 based Federation between Databricks (AWS) and ForgeRock OpenAM SSO]]></title>
            <link>https://medium.com/forgerock/saml-2-0-based-federation-between-databricks-aws-and-forgerock-openam-sso-92d9775794df?source=rss----779ff1820897---4</link>
            <guid isPermaLink="false">https://medium.com/p/92d9775794df</guid>
            <category><![CDATA[saml2]]></category>
            <category><![CDATA[openam]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Jatinder Singh]]></dc:creator>
            <pubDate>Tue, 27 Nov 2018 05:55:42 GMT</pubDate>
            <atom:updated>2018-02-04T22:51:04.212Z</atom:updated>
            <content:encoded><![CDATA[<p>Databricks is a cloud-based big data processing platform for working with Apache Spark, that provides automated cluster management (using AWS or Microsoft Azure) and Jupyter style notebooks to create and share documents that contain live code, equations, visualizations and narrative text.</p><p>OpenAM as part of the ForgeRock stack provides a service called <em>Access Management</em>, which manages access to resources, such as a web page, an application, or web service, available over the network. When you need to federate identities across different domains and different organizations, then you need interoperable federation technologies. OpenAM has the capability to integrate well in federated access management scenarios and this article will demonstrate steps to enable SAMLv2 federation between Databricks and ForgeRock OpenAM to allow Single Sign-On (SSO).</p><p>Before getting started, I would like to share a bit about me. I provide consulting on ForgeRock Identity &amp; Access Management and Data Engineering working with Databricks and Spark cluster-computing framework. And I am in the process of obtaining AWS Certified Solutions Architect — Associate certificate (February 2018) and AWS Certified Big Data — Specialty. If you or your client has a need for IAM or Data Engineering consultant, please feel free to reach out to me. I work across <strong>North America</strong> including <strong>East Coast</strong>, <strong>Mid-West</strong>, and <strong>West Coast</strong>.</p><p>Below is a list of prerequisites and assumptions for this article:</p><ul><li>You have a premium Databricks subscription with “Operational Security” add-on enabled. Please note, you won’t be able to enable SSO without this add-on;</li><li>OpenAM expects SP metadata URL or metadata file in order to configure a remote service provider. We were unable to obtain the SP metadata from any of the URLs provided by Databricks and had to reach out to them for support. We suggest you reach out to Databricks if you are unable to access SP metadata. The metadata file they provided was a minimal file which you can see in the below code snippet. For this article, we assume you have the SP metadata file from Databricks.</li></ul><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;md:EntityDescriptor xmlns:md=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;<br>                     validUntil=&quot;2017-01-02T19:47:32Z&quot;<br>                     cacheDuration=&quot;PT604800S&quot;<br>                     entityID=&quot;https://YOUR-DATABRICKS-DEPLOYMENT.com&quot;&gt;<br>    &lt;md:SPSSODescriptor AuthnRequestsSigned=&quot;false&quot; WantAssertionsSigned=&quot;false&quot; protocolSupportEnumeration=&quot;urn:oasis:names:tc:SAML:2.0:protocol&quot;&gt;<br>        &lt;md:NameIDFormat&gt;urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified&lt;/md:NameIDFormat&gt;<br>        &lt;md:AssertionConsumerService Binding=&quot;urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST&quot;<br>                                     Location=&quot;https://YOUR-DATABRICKS-DEPLOYMENT.com/saml/consume&quot;<br>                                     index=&quot;1&quot; /&gt;<br><br>    &lt;/md:SPSSODescriptor&gt;<br>&lt;/md:EntityDescriptor&gt;</pre><ul><li>We used the latest OpenAM binary v5.5.1;</li><li>Your OpenAM IDP is configured and running;</li><li>Your OpenAM IDP has outbound connection to the internet.</li></ul><p>As an AWS professional and to demonstrate the federation steps, we will use <strong>EC2 t2.micro</strong>instance to spin an OpenAM instance running on Tomcat8 server. We will first configure our IDP and then enable SAMLv2 federation in Databricks SP. And below is essentially a 10,000-foot architecture of what we are trying to achieve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*Lk1EB5Bus8IxdW_tPtb3Tw.png" /><figcaption>10,000-foot Architecture</figcaption></figure><h4>Identity Provider (IDP) SAMLv2 Configuration</h4><ul><li>As a best practice, we will configure SAMLv2 federation in a new realm to keep federation separate from other realms. We will call the new realm “databricks” and have the DNS aliases set to the domain name of our Databricks deployment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P1vnUTg_0aOe9-vgGQ3FMg.jpeg" /><figcaption>Create New Realm</figcaption></figure><ul><li>In the “databricks” realm, click on <em>Common Tasks &gt; Configure SAMLv2 Provider &gt; Create Hosted Identity Provider</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U20w40DMIb4UZRpuJ2ULXA.png" /><figcaption>Create Hosted Identity Provider</figcaption></figure><ul><li>To configure your OpenAM instance as a SAMLv2 Identity Provider, please ensure the fields in the image are configured correctly. For demonstration, we are using the”test” signing key but you will use a valid certificate configured in your OpenAM Keystore. We named the Circle Of Trust (COT) <em>AMDatabricksv2</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JELWV1fBmOUF-IdiRSX51g.jpeg" /><figcaption>Hosted Identity Provider Configuration</figcaption></figure><ul><li>SAMLv2 metadata provided by Databricks sets the <em>NameIDFormat </em>to <em>unspecified</em>, which basically means it is up to the identity provider to determine which name identifier format to use. Under <em>Realms &gt; databricks &gt; Applications &gt; SAML &gt; IDP Entity Provider you Created &gt; Assertion Context Tab &gt; NameID Format &gt; NameID Value Map &gt; Set urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified=</em><strong><em>cn</em></strong></li></ul><p><strong>Note: </strong>Please note you will get a “<strong>SAML2Exception: Unable to generate NameID value</strong>” exception, if you miss this step and your SAMLv2 federation will fail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*51AXTtAoBcRFI3pVmUCizg.jpeg" /><figcaption>Configure NameID Format</figcaption></figure><ul><li>With IDP configured, the next step is to configure a remote service provider. Assuming you are already inside the databricks realm, click on<em> Configure SAMLv2 Provider (under Common Tasks) &gt; Configure Remote Service Provider.</em> On this page, you will upload your Databricks SAMLv2 metadata file by selecting the <em>file</em> radio button. In order to add this remote SP to your existing COT (<em>AMDatabricksCOTv2</em> which you created above), leave the <em>COT</em> field empty. Once completed, click the <em>Configured</em>button to create your SAMLv2 Remote Service Provider.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*PfWJzQFtKtdp9mt104Onng.jpeg" /><figcaption>Configure Remote Service Provider</figcaption></figure><ul><li>Your Federation tab should look like the below screenshot. If you do not see both your IDP and SP entities under the configured COT, make sure to add the missing entity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxr-W4Juia9mW1npH3NXGQ.png" /><figcaption>Federation Tab</figcaption></figure><h4>IDP SAMLv2 Metadata</h4><p>You will need to provide Databricks the <em>SSO URL </em>of your IDP and <em>x.509 Certificate</em>. Both SSO URL and the certificate values are available in your SAMLv2 metadata file. You can access the IDP metadata in OpenAM using the below URL:</p><p><strong>IDP SAMLv2 Metadata</strong></p><p><a href="http://idp_hostname:8080/openam/saml2/jsp/exportmetadata.jsp?realm=/databricks&amp;entityid=IDP_ENTITY_ID_YOU_CONFIGURED">http://IDP_HOSTNAME:8080/openam/saml2/jsp/exportmetadata.jsp?realm=/databricks&amp;entityid=IDP_ENTITY_ID_YOU_CONFIGURED</a></p><p><strong>SP SAMLv2 Metadata (in case you want to verify)</strong></p><p><a href="http://idp_hostname:8080/openam/saml2/jsp/exportmetadata.jsp?realm=/databricks&amp;entityid=SP_ENTITY_ID_YOU_CONFIGURED">http://IDP_HOSTNAME:8080/openam/saml2/jsp/exportmetadata.jsp?realm=/databricks&amp;entityid=SP_ENTITY_ID_YOU_CONFIGURED</a></p><p>Once you have access to the IDP metadata file, you will use the elements:</p><ul><li><em>ds.X509Certificate</em> — to copy your Public Key value to Databricks;</li><li><em>SingleSignOnService &gt; urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</em> — to configure SSO URL in Databricks.</li></ul><h4>Databricks (SP) SAMLv2 Configuration</h4><p>Configuring Databricks as a Service Provider (SP) is fairly quick and easy. Click on <em>Admin Console</em> &gt; <em>Single Sign-On</em> Tab &gt; and follow the below steps:</p><ul><li>Copy the <em>SingleSignOnService</em> value from above in the <em>Single Sign-On URL</em> field;</li><li>Copy your Databricks deployment URL in the <em>Identity Provider Issuer URL</em> field;</li><li>Copy the <em>ds.X509Certificate </em>value from above in the <em>x.509 Certificate </em>field and click <em>Enable SSO</em> button.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*D-1fpilVGarq9lhGlrnSow.png" /><figcaption>Databricks SSO Configuration</figcaption></figure><p>With your Databricks SP configured, you can now test your SAML Federation SSO. If everything is configured correctly, you will be redirected to IDP for user authentication and back to Databricks on successful authentication.</p><p>Thank you for reading this article. For any questions on OpenAM SAML federation with Databricks, please feel free to leave a comment or IM me directly. I would be more than happy to help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92d9775794df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/forgerock/saml-2-0-based-federation-between-databricks-aws-and-forgerock-openam-sso-92d9775794df">SAML 2.0 based Federation between Databricks (AWS) and ForgeRock OpenAM SSO</a> was originally published in <a href="https://medium.com/forgerock">Securing Digital Identity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>