aboutsummaryrefslogtreecommitdiffstats
path: root/keystone-moon/doc/source/extensions/federation.rst
blob: f1b5baa9e1fb6c9089c606ebe36ea5bb7c5b31b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
..
      Copyright 2014 OpenStack, Foundation
      All Rights Reserved.

      Licensed under the Apache License, Version 2.0 (the "License"); you may
      not use this file except in compliance with the License. You may obtain
      a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
      WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
      License for the specific language governing permissions and limitations
      under the License.

==================================
Enabling the Federation Extension
==================================

To enable the federation extension:

1. Add the federation extension driver to the ``[federation]`` section in
   ``keystone.conf``. For example::

       [federation]
       driver = keystone.contrib.federation.backends.sql.Federation

2. Add the ``saml2`` and/or ``oidc`` authentication methods to the ``[auth]``
   section in ``keystone.conf``::

       [auth]
       methods = external,password,token,saml2,oidc
       saml2 = keystone.auth.plugins.mapped.Mapped
       oidc = keystone.auth.plugins.mapped.Mapped

.. NOTE::
    The ``external`` method should be dropped to avoid any interference with
    some Apache + Shibboleth SP setups, where a ``REMOTE_USER`` env variable is
    always set, even as an empty value.

3. Add the ``federation_extension`` middleware to the ``api_v3`` pipeline in
   ``keystone-paste.ini``. This must be added after ``json_body`` and before
   the last entry in the pipeline. For example::

       [pipeline:api_v3]
       pipeline = sizelimit url_normalize build_auth_context token_auth admin_token_auth json_body ec2_extension_v3 s3_extension simple_cert_extension revoke_extension federation_extension service_v3

4. Create the federation extension tables if using the provided SQL backend.
   For example::

       ./bin/keystone-manage db_sync --extension federation

5. As of the Juno release, multiple Keystone deployments can now be federated.
   To do so, the `pysaml2 <https://pypi.python.org/pypi/pysaml2>`_ library is
   required. Since OS-FEDERATION is an extension, ``pysaml2`` is not installed
   by default, it must be installed manually. For example::

        pip install --upgrade $(grep pysaml2 test-requirements.txt)

   Also, the `xmlsec1` command line tool is needed to sign the SAML assertions
   generated by the Keystone Identity Provider:

   .. code-block:: bash

        $ apt-get install xmlsec1