SSO (AEN 4.1.0)
===============

.. raw:: html

    <p>Single Sign On (SSO) capability has been implemented in the Anaconda Enterprise Notebooks
    (AEN) creating a new auth provider which defer to AE-Repo for login
    using the auth cookie from AE-Repo for login purposes.</p>
    <p>To enable this feature you need to deploy AEN and AE-Repo on the same machine
    and modify the following config files:</p>
    <p>In the AEN Server&#8217;s config.json located at
    <code class="docutils literal"><span class="pre">/opt/wakari/wakari-server/</span></code> <code class="docutils literal"><span class="pre">etc/wakari/config.json</span></code> add the following :</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="n">EXISTING_CONFIGURATION</span><span class="p">,</span>
    <span class="s2">&quot;SECRET_KEY&quot;</span><span class="p">:</span> <span class="s2">&quot;&lt;repo signing secret&gt;&quot;</span><span class="p">,</span>
    <span class="s2">&quot;REPO_LOGIN_URL&quot;</span><span class="p">:</span>
        <span class="s2">&quot;http://example_repo.com:8080/account/login?next=http://example_repo.com/&quot;</span>
    <span class="p">}</span>
    </pre></div>
    </div>
    <p>and in the AEN Server&#8217;s wk_server_config.json located at
    <code class="docutils literal"><span class="pre">/opt/wakari/wakari-server/</span></code> <code class="docutils literal"><span class="pre">etc/wakari/wk_server_config.json</span></code> modify
    the following line:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="n">EXISTING_CONFIGURATION</span><span class="p">,</span>
    <span class="s2">&quot;accounts&quot;</span><span class="p">:</span> <span class="s2">&quot;wk_server.plugins.accounts.repo&quot;</span><span class="p">,</span>
    <span class="p">}</span>
    </pre></div>
    </div>
    <p>and you are done.</p>
