Revision 812e72c9 docs/upgrade/upgrade-0.15.rst
b/docs/upgrade/upgrade-0.15.rst | ||
---|---|---|
188 | 188 |
|
189 | 189 |
pithos-host$ pithos-migrate upgrade head |
190 | 190 |
|
191 |
.. _register_pithos_view: |
|
191 |
2.3 Configure Astakos authentication URL |
|
192 |
---------------------------------------- |
|
193 |
|
|
194 |
The ``ASTAKOS_BASE_URL`` setting has been replaced (both in Cyclades and Pithos |
|
195 |
services) with the ``ASTAKOS_AUTH_URL`` setting. |
|
196 |
|
|
197 |
For Cyclades service we have to change the ``20-snf-cyclades-app-api.conf`` |
|
198 |
file, remove the ``ASTAKOS_BASE_URL`` setting and replace it with |
|
199 |
``ASTAKOS_AUTH_URL``. Typically it is sufficient to add ``/identity/v2.0`` at |
|
200 |
the end of base URL to get the auth URL. For example, if base URL had the value |
|
201 |
of 'https://accounts.example.synnefo.org/' then the ``ASTAKOS_AUTH_URL`` |
|
202 |
setting will have the value of |
|
203 |
'https://accounts.example.synnefo.org/identity/v2.0'. |
|
192 | 204 |
|
193 |
2.3 Register Pithos view as an OAuth 2.0 client in Astakos |
|
205 |
The same change has to be made for the Pithos service in |
|
206 |
``/etc/synnefo/20-snf-pithos-app-settings.conf``. |
|
207 |
|
|
208 |
2.4 Register Pithos view as an OAuth 2.0 client in Astakos |
|
194 | 209 |
---------------------------------------------------------- |
195 | 210 |
|
196 | 211 |
Starting from Synnefo version 0.15, the Pithos view, in order to get access to |
... | ... | |
213 | 228 |
To register the pithos view as an OAuth 2.0 client in astakos, use the |
214 | 229 |
following command:: |
215 | 230 |
|
216 |
snf-manage oauth2-client-add pithos-view --secret=<secret> --is-trusted --url https://pithos.synnefo.live/pithos/ui/view |
|
217 |
|
|
218 |
2.4 Update configuration files |
|
219 |
------------------------------ |
|
231 |
astakos-host$ snf-manage oauth2-client-add pithos-view --secret=<secret> --is-trusted --url https://pithos.synnefo.live/pithos/ui/view |
|
220 | 232 |
|
221 |
The ``ASTAKOS_BASE_URL`` setting has been replaced (both in Cyclades and Pithos |
|
222 |
services) with the ``ASTAKOS_AUTH_URL`` setting. |
|
233 |
You can see the registered clients by running:: |
|
223 | 234 |
|
224 |
For Cyclades service we have to change the ``20-snf-cyclades-app-api.conf`` |
|
225 |
file, remove the ``ASTAKOS_BASE_URL`` setting and replace it with |
|
226 |
``ASTAKOS_AUTH_URL``. Typically it is sufficient to add ``/identity/v2.0`` at |
|
227 |
the end of base URL to get the auth URL. For example, if base URL had the value |
|
228 |
of 'https://accounts.example.synnefo.org/' then the ``ASTAKOS_AUTH_URL`` |
|
229 |
setting will have the value of |
|
230 |
'https://accounts.example.synnefo.org/identity/v2.0'. |
|
235 |
astakos-host$ snf-manage oauth2-client-list -o id,name,redirect_urls,is_trusted |
|
231 | 236 |
|
232 |
For the Pithos service we have to change the ``20-snf-pithos-app-settings.conf`` |
|
233 |
file in the same way as above. In addition to this, we have to change the |
|
234 |
``PITHOS_OAUTH2_CLIENT_CREDENTIALS`` setting in the same configuration file |
|
235 |
to set the credentials issued for the pithos view in `the previous step`__. |
|
237 |
Finally, you will have to add the registered `client_id` and `client_secret` to |
|
238 |
the ``PITHOS_OAUTH2_CLIENT_CREDENTIALS`` setting in |
|
239 |
``/etc/synnefo/20-snf-pithos-app-settings.conf``. |
|
236 | 240 |
|
237 |
__ register_pithos_view_ |
|
238 | 241 |
|
239 | 242 |
2.5 Upgrade vncauthproxy and configure snf-cyclades-app |
240 | 243 |
------------------------------------------------------- |
Also available in: Unified diff