Commit 8145607c authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Update docs

parent 780ec485
......@@ -91,7 +91,7 @@ We register an OAuth 2.0 client with the following command::
For example::
snf-manage oauth2-client-add pithos-view --secret=12345 --is-trusted --url https://pithos.synnefo.live/pithos/ui/view
snf-manage oauth2-client-add pithos-view --secret=12345 --is-trusted --url https://node2.example.com/pithos/ui/view
Configure view credentials in Pithos
------------------------------------
......@@ -129,7 +129,7 @@ For example, the client directs the user-agent to make the following HTTP
request using TLS (with extra line breaks for display purposes only)::
GET /astakos/oauth2/auth?response_type=code&client_id=pithos-view
&redirect_uri=https%3A//pithos.synnefo.live/pithos/ui/view/b0ee4760-9451-4b9a-85f0-605c48bebbdd/pithos/image.png
&redirect_uri=https%3A//node2.example.com/pithos/ui/view/b0ee4760-9451-4b9a-85f0-605c48bebbdd/pithos/image.png
&scope=/b0ee4760-9451-4b9a-85f0-605c48bebbdd/pithos/image.png HTTP/1.1
Host: accounts.synnefo.live
......@@ -169,7 +169,7 @@ line breaks for display purposes only)::
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA
&redirect_uri=https%3A//pithos.synnefo.live/pithos/ui/view/b0ee4760-9451-4b9a-85f0-605c48bebbdd/pithos/image.png
&redirect_uri=https%3A//node2.example.com/pithos/ui/view/b0ee4760-9451-4b9a-85f0-605c48bebbdd/pithos/image.png
Access to the protected resource
--------------------------------
......
......@@ -228,7 +228,12 @@ of the resource owner, otherwise the resource owner has to be asked.
To register the pithos view as an OAuth 2.0 client in astakos, use the
following command::
astakos-host$ snf-manage oauth2-client-add pithos-view --secret=<secret> --is-trusted --url https://pithos.synnefo.live/pithos/ui/view
astakos-host$ snf-manage oauth2-client-add pithos-view --secret=<secret> --is-trusted --url <redirect_uri>
The redirect_uri should be the ``PITHOS_BASE_URL`` plus the ``/ui/view``
suffix, for example::
https://node2.example.com/pithos/ui/view
You can see the registered clients by running::
......
......@@ -55,8 +55,9 @@
# Extra requests will be blocked until another has completed.
#PITHOS_BACKEND_POOL_SIZE = 5
#
# Set the credentials (client_id, client_secret) issued for authenticating
# the views with astakos during the resource access token generation procedure
# Set the credentials (client identifier, client secret) issued for
# authenticating the views with astakos during the resource access token
# generation procedure
#PITHOS_OAUTH2_CLIENT_CREDENTIALS = (None, None)
#
# Set domain to restrict requests of pithos object contents serve endpoint or
......
......@@ -194,8 +194,9 @@ BACKEND_BLOCK_SIZE = getattr(
BACKEND_HASH_ALGORITHM = getattr(
settings, 'PITHOS_BACKEND_HASH_ALGORITHM', 'sha256')
# Set the credentials (client_id, client_secret) issued for authenticating
# the views with astakos during the resource access token generation procedure
# Set the credentials (client identifier, client secret) issued for
# authenticating the views with astakos during the resource access token
# generation procedure
OAUTH2_CLIENT_CREDENTIALS = getattr(settings,
'PITHOS_OAUTH2_CLIENT_CREDENTIALS',
(None, None))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment