Single sign on
==============

Anaconda Enterprise Notebook's Single Sign On (SSO) capability 
creates a new authentication provider which defers to 
Anaconda Enterprise Repository for login and uses the
authentication cookie from Repository.

To enable this feature, deploy AEN and Repository on the same machine
and modify the following config files.

In the AEN Server's config.json located at
``/opt/wakari/wakari-server/`` ``etc/wakari/config.json`` add the following::

    {
    EXISTING_CONFIGURATION,
    "SECRET_KEY": "<repo signing secret>",
    "REPO_LOGIN_URL":
        "http://example_repo.com:8080/account/login?next=http://example_repo.com/"
    }

Copy the ``SECRET_KEY`` from the Anaconda Repository configuration file.

In the AEN Server's wk\_server\_config.json located at
``/opt/wakari/wakari-server/`` ``etc/wakari/wk_server_config.json`` modify
the following line::

    {
    EXISTING_CONFIGURATION,
    "accounts": "wk_server.plugins.accounts.repo",
    }

and you are done.
