You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,9 @@ The [Thycotic](https://thycotic.com/) [Secret Server](https://thycotic.com/produ
10
10
python -m pip install python-tss-sdk
11
11
```
12
12
13
-
## Secret Server Cloud
14
-
15
-
The SDK API requires a `username`, `password`, and a `tenant`.
16
-
17
-
`tenant` simplifies the configuration when using Secret Server Cloud by assuming the default folder structure and creating the _base URL_ from a template that takes the `tenant` and an optional top-level domain (TLD) that defaults to `com`, as parameters.
18
-
19
-
### Use
20
-
21
-
Instantiate the `SecretServerCloud` class with `tenant` , `username` and `password` and (optionally include a `tld`). To retrieve a secret, pass an integer `id` to `get_secret()` which will return the secret as a JSON encoded string.
22
-
23
-
```python
24
-
from thycotic.secrets.server import SecretServerCloud
The SDK API also contains a `Secret``@dataclass` containing a subset of the Secret's attributes and a dictionary of all the fields keyed by the Secret's `slug`.
32
-
33
-
## Secret Server
34
-
35
-
There are three ways in which you can authorize the `SecretServer` class to fetch secrets.
15
+
There are three ways in which you can authorize the `SecretServer` and `SecretServerCloud` classes to fetch secrets.
The SDK API requires an `Authorizer` and a `tenant`.
56
+
57
+
`tenant` simplifies the configuration when using Secret Server Cloud by assuming the default folder structure and creating the _base URL_ from a template that takes the `tenant` and an optional top-level domain (TLD) that defaults to `com`, as parameters.
58
+
59
+
### Useage
60
+
61
+
Instantiate the `SecretServerCloud` class with `tenant` and an `Authorizer` (optionally include a `tld`). To retrieve a secret, pass an integer `id` to `get_secret()` which will return the secret as a JSON encoded string.
62
+
63
+
```python
64
+
from thycotic.secrets.server import SecretServerCloud
The SDK API also contains a `Secret``@dataclass` containing a subset of the Secret's attributes and a dictionary of all the fields keyed by the Secret's `slug`.
72
+
73
+
## Initializing SecretServer
74
+
75
+
### Useage
74
76
75
77
> NOTE: In v1.0.0 `SecretServer` replaces `SecretServerV1`. However, `SecretServerV0` is available to use instead, for backwards compatibility with v0.0.5 and v0.0.6.
76
78
77
-
To instantiate the `SecretServer` class, it requires a `base_url`, `authorizer` object (see above), and an optional `api_path_uri` (defaults to `"/api/v1"`)
79
+
To instantiate the `SecretServer` class, it requires a `base_url`, an `Authorizer` object (see above), and an optional `api_path_uri` (defaults to `"/api/v1"`)
The tests assume that the user associated with the specified `TSS_USERNAME` and `TSS_PASSWORD` can read the secret to be fetched, and that the Secret itself contains `username` and `password` fields.
0 commit comments