Skip to content

Commit

Permalink
fix OpenStack creation
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Jan 17, 2024
1 parent 692b514 commit ef887d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion doc/quick-start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Only the ``authUrl`` is mandatory to create a client. But you will have to provi
to each service you create. So it is recommended to provide them when creating the client.

There are different ways to provide the authentication credentials. See the `Token generation`_ section for
the full list of options.
the full list of options. You should provide credentials to the `OpenStack` constructor as an array the same way
you provide options to `generateToken` method of the `Identity` service.

Here is an example of how to create a client with a user id and password:

Expand Down
7 changes: 4 additions & 3 deletions doc/services/identity/v3/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ Creating the service
--------------------

Service can be created via `identityV3` method of `OpenStack` object:

.. code-block:: php
$service = $openstack->identityV3();
A list of additional options can be passed to the method. For example, to change the region:

.. code-block:: php
$service = $openstack->identityV3(['region' => '{region}']);
Service methods
---------------
$service = $openstack->identityV3(['region' => '{region}']);
.. toctree::
:maxdepth: 3
Expand Down

0 comments on commit ef887d4

Please sign in to comment.