~ubuntu-branches/ubuntu/precise/glance/precise-proposed

« back to all changes in this revision

Viewing changes to doc/source/authentication.rst

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandleman
  • Date: 2012-01-20 14:37:16 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20120120143716-2va2h1g2230m51zx
Tags: 2012.1~e3~20120120.1206-0ubuntu1
[Chuck Short]
* New upstream release.

[Adam Gandleman]
* debian/glance-api.install, glance-registry.install:  Install
  new paste configs that have been split among servers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
 
117
117
Configuring Glance API to use Keystone is relatively straight
118
118
forward.  The first step is to ensure that declarations for the two
119
 
pieces of middleware exist.  Here is an example for ``authtoken``::
 
119
pieces of middleware exist in the ``glance-api-paste.ini``.  Here is
 
120
an example for ``authtoken``::
120
121
 
121
122
  [filter:authtoken]
122
123
  paste.filter_factory = keystone.middleware.auth_token:filter_factory
170
171
-------------------------------------------
171
172
 
172
173
Configuring Glance Registry to use Keystone is also relatively
173
 
straight forward.  The same pieces of middleware need to be added as
174
 
are needed by Glance API; see above for an example of the
175
 
``authtoken`` configuration.  There is a slight difference for the
176
 
``auth-context`` middleware, which should look like this::
 
174
straight forward.  The same pieces of middleware need to be added
 
175
to ``glance-registry-paste.ini`` as are needed by Glance API;
 
176
see above for an example of the ``authtoken`` configuration.
 
177
There is a slight difference for the ``auth-context`` middleware,
 
178
which should look like this::
177
179
 
178
180
  [filter:auth-context]
179
181
  context_class = glance.registry.context.RequestContext
183
185
Registry-specific request context, which contains the extra access
184
186
checks used by the Registry.
185
187
 
186
 
Again, to enable using Keystone authentication, the application
187
 
pipeline must be modified.  By default, it looks like:
188
 
 
189
 
  [pipeline:glance-registry]
190
 
  pipeline = context registryapp
191
 
 
192
 
This must be changed by replacing ``context`` with ``authtoken`` and
193
 
``auth-context``::
194
 
 
195
 
  [pipeline:glance-registry]
 
188
Again, to enable using Keystone authentication, the appropriate
 
189
application pipeline must be selected.  By default, it looks like:
 
190
 
 
191
  [pipeline:glance-registry-keystone]
196
192
  pipeline = authtoken auth-context registryapp
197
193
 
 
194
To enable the above application pipeline, in your main ``glance-registry.conf``
 
195
configuration file, select the appropriate deployment flavor like so::
 
196
 
 
197
  [paste_deploy]
 
198
  flavor = keystone
 
199
 
198
200
Sharing Images With Others
199
201
--------------------------
200
202