Skip to content

Commit 3d0dbe8

Browse files
authored
Merge pull request #1750 from grycap/devel
Update docs
2 parents b488ef8 + c9c6438 commit 3d0dbe8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

doc/source/tosca.rst

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,14 @@ value of a internally defined value.
429429
- output
430430
431431
432-
Random Input values
432+
Special Input values
433433
^^^^^^^^^^^^^^^^^^^^
434434

435-
The IM TOSCA parser supports the generation of random values for string inputs.
435+
The IM TOSCA parser supports the generation of some special values for string inputs.
436+
437+
Random values
438+
-------------
439+
436440
The special string ``random(N)`` generates a random string of length N with
437441
alphanumeric characters. It can be used to define passwords or any other random
438442
string input value (from version 1.19.2).
@@ -446,3 +450,22 @@ string input value (from version 1.19.2).
446450
type: string
447451
description: Password for the App
448452
default: 'random(12)'
453+
454+
455+
Access Token
456+
-------------
457+
458+
The special string ``access_token()`` substitutes the function with the OIDC
459+
user access token sent in the authorization header sent in the IM call,
460+
in the `InfrastructureManager` type element. If user/password has sent to
461+
authenticate with the IM, the string will be left unchanged.
462+
463+
.. code-block:: yaml
464+
465+
...
466+
467+
inputs:
468+
user_access_token:
469+
type: string
470+
description: User OIDC Access Token
471+
default: 'access_token()'

0 commit comments

Comments
 (0)