diff --git a/doc/source/federation/configure_federation.rst b/doc/source/federation/configure_federation.rst index 777bf030f6..850a9cd994 100644 --- a/doc/source/federation/configure_federation.rst +++ b/doc/source/federation/configure_federation.rst @@ -367,19 +367,25 @@ projects and domains that are accessible. Read more about `listing resources `__. -~~~~~~~~~~~~ -Example cURL -~~~~~~~~~~~~ +~~~~~~~ +Example +~~~~~~~ .. code-block:: bash - $ curl -X GET -H "X-Auth-Token: " http://localhost:5000/v3/OS-FEDERATION/projects + $ export OS_IDENTITY_API_VERSION=3 + $ export OS_TOKEN= + $ export OS_URL=http://localhost:5000/v3 + $ openstack federation project list or .. code-block:: bash - $ curl -X GET -H "X-Auth-Token: " http://localhost:5000/v3/OS-FEDERATION/domains + $ export OS_IDENTITY_API_VERSION=3 + $ export OS_TOKEN= + $ export OS_URL=http://localhost:5000/v3 + $ openstack federation domain list Get a scoped token ~~~~~~~~~~~~~~~~~~ @@ -391,13 +397,19 @@ sufficient to uniquely identify a project or domain. Read more about `getting a scoped token `__. -~~~~~~~~~~~~ -Example cURL -~~~~~~~~~~~~ +~~~~~~~ +Example +~~~~~~~ .. code-block:: bash - $ curl -X POST -H "Content-Type: application/json" -d '{"auth":{"identity":{"methods":["mapped"],"mapped":{"id":""}},"scope":{"project":{"domain": {"name": "federated_domain"},"name":"federated_project"}}}}' -D - http://localhost:5000/v3/auth/tokens + $ export OS_AUTH_TYPE=token + $ export OS_IDENTITY_API_VERSION=3 + $ export OS_TOKEN= + $ export OS_AUTH_URL=http://localhost:5000/v3 + $ export OS_PROJECT_DOMAIN_NAME=federated_domain + $ export OS_PROJECT_NAME=federated_project + $ openstack token issue -------------------------------------- Keystone as an Identity Provider (IdP)