Skip to content

Commit 87ad9ed

Browse files
committed
Fix typos tennant is now tenant
1 parent d6b3f6b commit 87ad9ed

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

libs/aries-basic-controller/aries_basic_controller/aries_controller.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class AriesAgentController:
5959
Initialise revocation interface for credentials (default is True)
6060
api_key : str
6161
The API key (default is None)
62-
tennant_jwt: str
63-
The tennant JW token (default is None)
62+
tenant_jwt: str
63+
The tenant JW token (default is None)
6464
"""
6565

6666
## TODO rethink how to initialise. Too many args?
@@ -77,7 +77,7 @@ class AriesAgentController:
7777
action_menu: bool = True
7878
revocations: bool = True
7979
api_key: str = None
80-
tennant_jwt: str = None
80+
tenant_jwt: str = None
8181

8282

8383
def __post_init__(self):
@@ -94,8 +94,8 @@ def __post_init__(self):
9494
if self.api_key:
9595
self.headers.update({"X-API-Key": self.api_key})
9696

97-
if self.tennant_jwt:
98-
self.headers.update({'Authorization': 'Bearer ' + self.tennant_jwt, 'content-type': "application/json"})
97+
if self.tenant_jwt:
98+
self.headers.update({'Authorization': 'Bearer ' + self.tenant_jwt, 'content-type': "application/json"})
9999

100100
self.client_session: ClientSession = ClientSession(headers=self.headers)
101101

@@ -135,16 +135,16 @@ def __post_init__(self):
135135
)
136136

137137

138-
def update_tennant_jwt(self, tennant_jwt: str):
139-
"""Update the tenannt JW token attribute and the header
138+
def update_tenant_jwt(self, tenant_jwt: str):
139+
"""Update the tenant JW token attribute and the header
140140
141141
Args:
142142
----
143-
tennant_jwt : str
144-
The tennant's JW token
143+
tenant_jwt : str
144+
The tenant's JW token
145145
"""
146-
self.tennant_jwt = tennant_jwt
147-
self.headers.update({'Authorization': 'Bearer ' + tennant_jwt, 'content-type': "application/json"})
146+
self.tenant_jwt = tenant_jwt
147+
self.headers.update({'Authorization': 'Bearer ' + tenant_jwt, 'content-type': "application/json"})
148148
self.client_session.headers.update(self.headers)
149149

150150

@@ -169,9 +169,9 @@ def remove_api_key(self):
169169
del self.headers['X-API-Key']
170170

171171

172-
def remove_tennant_jwt(self):
173-
"""Removes the tennant's JW Token attribute and corresponding headers from the Client Session"""
174-
self.tennant_jwt = None
172+
def remove_tenant_jwt(self):
173+
"""Removes the tenant's JW Token attribute and corresponding headers from the Client Session"""
174+
self.tenant_jwt = None
175175
if 'Authorization' in self.client_session.headers:
176176
del self.client_session.headers['Authorization']
177177
del self.headers['Authorization']

tutorials/4. Multitenancy/notebooks/basewallet/Alice/Part 2 - Mediation of communication - Alice.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"metadata": {},
120120
"outputs": [],
121121
"source": [
122-
"agent_controller.update_tennant_jwt(alice_jwt)"
122+
"agent_controller.update_tenant_jwt(alice_jwt)"
123123
]
124124
},
125125
{
@@ -145,7 +145,7 @@
145145
}
146146
],
147147
"source": [
148-
"print(agent_controller.tennant_jwt)"
148+
"print(agent_controller.tenant_jwt)"
149149
]
150150
},
151151
{

tutorials/4. Multitenancy/notebooks/basewallet/Alice/Part 3 - Communicating with an external agent.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"metadata": {},
129129
"outputs": [],
130130
"source": [
131-
"agent_controller.update_tennant_jwt(alice_jwt)"
131+
"agent_controller.update_tenant_jwt(alice_jwt)"
132132
]
133133
},
134134
{
@@ -154,7 +154,7 @@
154154
}
155155
],
156156
"source": [
157-
"print(agent_controller.tennant_jwt)"
157+
"print(agent_controller.tenant_jwt)"
158158
]
159159
},
160160
{

tutorials/4. Multitenancy/notebooks/basewallet/Part 1 - Subwallet Administration.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"source": [
88
"# Part 1 - Exploring Sub Wallet Management\n",
99
"\n",
10-
"This agent has been initialised using the multitennant flag. This means a single ACA-Py instance can be used to manage multiple subwallets. Each tennant gets their own encrypted data storage for managing their own connections, credentials and interactions etc. \n",
10+
"This agent has been initialised using the multitenant flag. This means a single ACA-Py instance can be used to manage multiple subwallets. Each tenant gets their own encrypted data storage for managing their own connections, credentials and interactions etc. \n",
1111
"\n",
12-
"A mutli-tennant ACA-Py instance contains a base wallet that is only capable of managing the creation and deletion of subwallets. Subwallets then must authenticate to the ACA-Py agent using a JWT Token generated when the subwallet is created. A tennant agent can do all funcationality of a standard ACA-Py instance.\n",
12+
"A mutli-tenant ACA-Py instance contains a base wallet that is only capable of managing the creation and deletion of subwallets. Subwallets then must authenticate to the ACA-Py agent using a JWT Token generated when the subwallet is created. A tenant agent can do all funcationality of a standard ACA-Py instance.\n",
1313
"\n",
1414
"### Useful links\n",
1515
"\n",
1616
"* [What is mult-tennancy](https://whatis.techtarget.com/definition/multi-tenancy)\n",
17-
"* [ACA-Py mult-tennant documentation](https://github.com/hyperledger/aries-cloudagent-python/blob/main/Multitenancy.md)\n",
17+
"* [ACA-Py mult-tenant documentation](https://github.com/hyperledger/aries-cloudagent-python/blob/main/Multitenancy.md)\n",
1818
"\n",
1919
"\n",
2020
"\n",
2121
"### Tutorial Structure\n",
2222
"\n",
2323
"1. Create a subwallet for Alice (this notebook)\n",
24-
"2. Authenticate as Alice using the tennant_jwt and configure a mediator\n",
24+
"2. Authenticate as Alice using the tenant_jwt and configure a mediator\n",
2525
"3. Issue Alice a Credential from an External Agent\n",
2626
"4. Alice Issues a Credential to the External Agent"
2727
]
@@ -75,7 +75,7 @@
7575
"source": [
7676
"# Based on the aca-py agent you wish to control\n",
7777
"agent_controller = AriesAgentController(webhook_host=WEBHOOK_HOST, webhook_port=WEBHOOK_PORT,\n",
78-
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL, multitenant=True, api_key=\"password\")"
78+
" webhook_base=WEBHOOK_BASE, admin_url=ADMIN_URL, multitenant=True)"
7979
]
8080
},
8181
{
@@ -85,7 +85,7 @@
8585
"source": [
8686
"### Check for subwallets on the agent\n",
8787
"\n",
88-
"This should yield an empty result, but not error. That means we successfully asked the basewallet holder multitenant agent about subwallets. ACA-Py instances not in the multitennant configuration will not have access to this API."
88+
"This should yield an empty result, but not error. That means we successfully asked the basewallet holder multitenant agent about subwallets. ACA-Py instances not in the multitenant configuration will not have access to this API."
8989
]
9090
},
9191
{
@@ -245,7 +245,7 @@
245245
"source": [
246246
"### Extract the wallet ID\n",
247247
"\n",
248-
"The wallet id is a unique identifier created by the ACA-Py instance to identify a particular tennant wallet instance. The base wallet controller can use this when interacting with subwallets through the multitennant API."
248+
"The wallet id is a unique identifier created by the ACA-Py instance to identify a particular tenant wallet instance. The base wallet controller can use this when interacting with subwallets through the multitenant API."
249249
]
250250
},
251251
{
@@ -512,4 +512,4 @@
512512
},
513513
"nbformat": 4,
514514
"nbformat_minor": 5
515-
}
515+
}

tutorials/4. Multitenancy/notebooks/external/Configure External Agent.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Configure External Agent as Issuer\n",
88
"\n",
9-
"In this notebook we configure the external agent as an issuer of PyDentity Multi-Tennant Course certificates by register a public DID onto the Sovrin StagingNet and writing a Credential Definition for the PyDentity Multi-Tennant Tutorial credential schema which is already on the ledger.\n"
9+
"In this notebook we configure the external agent as an issuer of PyDentity Multi-Tenant Course certificates by register a public DID onto the Sovrin StagingNet and writing a Credential Definition for the PyDentity Multi-Tenant Tutorial credential schema which is already on the ledger.\n"
1010
]
1111
},
1212
{
@@ -258,7 +258,7 @@
258258
"source": [
259259
"## 5. Write Credential Definition to Ledger\n",
260260
"\n",
261-
"This is creating the key pair required for the External agent to issue PyDentity Multi-Tennant Tutorial certificates. See schema on the ledger through [IndyScan](https://indyscan.io/tx/SOVRIN_STAGINGNET/domain/195790)"
261+
"This is creating the key pair required for the External agent to issue PyDentity Multi-Tenant Tutorial certificates. See schema on the ledger through [IndyScan](https://indyscan.io/tx/SOVRIN_STAGINGNET/domain/195790)"
262262
]
263263
},
264264
{
@@ -267,7 +267,7 @@
267267
"metadata": {},
268268
"outputs": [],
269269
"source": [
270-
"schema_id = '7DfSpFJMUThna1uQoR1mtY:2:PyDentity Multi-Tennant Tutorial:0.0.1'"
270+
"schema_id = '7DfSpFJMUThna1uQoR1mtY:2:PyDentity Multi-Tenant Tutorial:0.0.1'"
271271
]
272272
},
273273
{

0 commit comments

Comments
 (0)