summaryrefslogtreecommitdiff
path: root/doc/source/admin/identity-token-binding.rst
blob: 34dbc2f919e924e7ba7408419a9450f7474713d7 (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
67
============================================
Configure Identity service for token binding
============================================

Token binding embeds information from an external authentication
mechanism, such as a Kerberos server or X.509 certificate, inside a
token. By using token binding, a client can enforce the use of a
specified external authentication mechanism with the token. This
additional security mechanism ensures that if a token is stolen, for
example, it is not usable without external authentication.

You configure the authentication types for a token binding in the
``/etc/keystone/keystone.conf`` file:

.. code-block:: ini

   [token]
   bind = kerberos

or

.. code-block:: ini

   [token]
   bind = x509

Currently ``kerberos`` and ``x509`` are supported.

To enforce checking of token binding, set the ``enforce_token_bind``
option to one of these modes:

- ``disabled``
    Disables token bind checking.

- ``permissive``
    Enables bind checking. If a token is bound to an unknown
    authentication mechanism, the server ignores it. The default is this
    mode.

- ``strict``
    Enables bind checking. If a token is bound to an unknown
    authentication mechanism, the server rejects it.

- ``required``
    Enables bind checking. Requires use of at least authentication
    mechanism for tokens.

- ``kerberos``
    Enables bind checking. Requires use of kerberos as the authentication
    mechanism for tokens:

    .. code-block:: ini

       [token]
       enforce_token_bind = kerberos

- ``x509``
    Enables bind checking. Requires use of X.509 as the authentication
    mechanism for tokens:

    .. code-block:: ini

       [token]
       enforce_token_bind = x509

*Do not* set ``enforce_token_bind = named`` as there is not an authentication
mechanism called ``named``.