Skip to content

Commit d47519b

Browse files
committed
Minor fixes and tidying
1 parent 65c1483 commit d47519b

27 files changed

+261
-155
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
connections: bool = True,
3939
messaging: bool = True,
4040
multitenant: bool = False,
41-
mediation: bool = True,
41+
mediation: bool = False,
4242
issuer: bool = True,
4343
action_menu: bool = True,
4444
revocations: bool = True,
@@ -55,17 +55,18 @@ def __init__(
5555
self.webhook_host = webhook_host
5656
self.webhook_port = webhook_port
5757
self.connections_controller = None
58-
self.tennant_jwt = tennant_jwt
5958

60-
headers = {}
59+
self.headers = {}
6160

6261
if api_key:
63-
headers = headers.update({"X-API-Key": api_key})
62+
self.api_key = api_key
63+
self.headers.update({"X-API-Key": api_key})
6464

6565
if tennant_jwt:
66-
headers = headers.update({'Authorization': 'Bearer ' + tennant_jwt, 'content-type': "application/json"})
66+
self.tennant_jwt = tennant_jwt
67+
self.headers.update({'Authorization': 'Bearer ' + tennant_jwt, 'content-type': "application/json"})
6768

68-
self.client_session: ClientSession = ClientSession(headers=headers)
69+
self.client_session: ClientSession = ClientSession(headers= self.headers)
6970

7071

7172
if connections:
@@ -111,8 +112,8 @@ def __init__(
111112
# to update every attr using ClientSession
112113
def update_tennant_jwt(self, tennant_jwt):
113114
self.tennant_jwt = tennant_jwt
114-
headers = {'Authorization': 'Bearer ' + tennant_jwt, 'content-type': "application/json"}
115-
self.client_session: ClientSession = ClientSession(headers=headers)
115+
self.headers.update({'Authorization': 'Bearer ' + tennant_jwt, 'content-type': "application/json"})
116+
self.client_session: ClientSession = ClientSession(headers=self.headers)
116117

117118
if self.connections:
118119
self.connections = ConnectionsController(self.admin_url, self.client_session)

projects/aries-fl/notebooks/researcher/Researcher.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"source": [
104104
"## Request Authorised Research Credential\n",
105105
"\n",
106-
"Copy invite from the [Health Research Authority Notebook](http://localhost:8889/notebooks/Health%20Research%20Regulator.ipynb)"
106+
"Copy invite from the [Health Research Authority Notebook](http://localhost:8889/lab/tree/Health%20Research%20Regulator.ipynb)"
107107
]
108108
},
109109
{

projects/doctors-in-training/notebooks/hee/Part 4.1 - Initialising the HEE Agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Initialising the Health Education England Agent\n",
88
"\n",
9-
"## If you wish to start at the beginning of the Doctor's in Training flow go [here](http://localhost:8889/notebooks/Part%201%20-%20Getting%20Started.ipynb).\n",
9+
"## If you wish to start at the beginning of the Doctor's in Training flow go [here](http://localhost:8889/lab/tree/Part%201%20-%20Getting%20Started.ipynb).\n",
1010
"\n",
1111
"In this notebook you will register the DID of the HEE agent on the Sovrin StagingNet and write the credential definitions that Health Education England is responsible for issuing.\n",
1212
"\n",

projects/doctors-in-training/notebooks/hee/Part 4.2 - Interact with Doctor in Training.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"## Before running through this notebook you should run through the following notebook - [Part 4.1](http://localhost:8891/notebooks/Part%204.1%20-%20Initialising%20the%20HEE%20Agent.ipynb).\n",
1313
"\n",
14-
"## Or alternatively you can start at the beginning of the Doctors in Training flow [here](http://localhost:8889/notebooks/Part%201%20-%20Getting%20Started.ipynb).\n",
14+
"## Or alternatively you can start at the beginning of the Doctors in Training flow [here](http://localhost:8889/lab/tree/Part%201%20-%20Getting%20Started.ipynb).\n",
1515
"\n"
1616
]
1717
},

projects/doctors-in-training/notebooks/lead-employer/Part 5.1 - Initialising the Lead Employer Agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Initialising the Lead Employer Agent\n",
88
"\n",
9-
"## If you wish to start at the beginning of the Doctor's in Training flow go [here](http://localhost:8889/notebooks/Part%201%20-%20Getting%20Started.ipynb).\n",
9+
"## If you wish to start at the beginning of the Doctor's in Training flow go [here](http://localhost:8889/lab/tree/Part%201%20-%20Getting%20Started.ipynb).\n",
1010
"\n",
1111
"In this notebook you will register the DID of the Lead Employer agent on the Sovrin StagingNet and write the credential definitions for the schema the Lead Employer is responsible for issuing.\n",
1212
"\n",

projects/doctors-in-training/notebooks/lead-employer/Part 5.2 - Onboard a Doctor in Training.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"\n",
1414
"## Before running through this notebook you should run through the following notebook - [Part 5.1](http://localhost:8892/notebooks/Part%205.1%20-%20Initialising%20the%20Lead%20Employer%20Agent.ipynb).\n",
1515
"\n",
16-
"## Or alternatively you can start at the beginning of the Doctors in Training flow [here](http://localhost:8889/notebooks/Part%201%20-%20Getting%20Started.ipynb).\n",
16+
"## Or alternatively you can start at the beginning of the Doctors in Training flow [here](http://localhost:8889/lab/tree/Part%201%20-%20Getting%20Started.ipynb).\n",
1717
"\n"
1818
]
1919
},

tutorials/1. Learning Aries, ACA-Py and the Basic Controller/notebooks/alice/1 Basic Concepts and 1st Connection/Part 2 - Aries Basic Controller.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
},
137137
{
138138
"cell_type": "code",
139-
"execution_count": null,
139+
"execution_count": 1,
140140
"metadata": {},
141141
"outputs": [],
142142
"source": [
@@ -322,11 +322,11 @@
322322
"\n",
323323
"These tutorials are largely designed to be stand alone, but if this is your first time exploring this tutorial it is recommended that you follow the order defined.\n",
324324
"\n",
325-
"* Part 3: Establishing a Connection: [Alice](http://localhost:8888/lab/tree/1%20Basic%20Concepts%20and%201st%20Connection/Part%203%20-%20Establishing%20a%20Connection.ipynb), [Bob](http://localhost:8889/notebooks/1%20Basic%20Concepts%20and%201st%20Connection/Part%203%20-%20Establishing%20a%20Connection.ipynb)\n",
325+
"* Part 3: Establishing a Connection: [Alice](http://localhost:8888/lab/tree/1%20Basic%20Concepts%20and%201st%20Connection/Part%203%20-%20Establishing%20a%20Connection.ipynb), [Bob](http://localhost:8889/lab/tree/1%20Basic%20Concepts%20and%201st%20Connection/Part%203%20-%20Establishing%20a%20Connection.ipynb)\n",
326326
"* Part 4: Credential Schema and Definitions: [Alice only](http://localhost:8888/lab/tree/2%20Credentials/Part%201%20-%20Credential%20Schema%20and%20Definitions.ipynb)\n",
327-
"* Part 5: Issue Credential: [Alice](http://localhost:8888/lab/tree/2%20Credentials/Part%202%20-%20Issue%20Credential.ipynb), [Bob](http://localhost:8889/notebooks/2%20Credentials/Part%202%20-%20Issue%20Credential.ipynb)\n",
328-
"* Part 6: Present Proof: [Alice](http://localhost:8888/lab/tree/2%20Credentials/Part%203%20-%20Present%20Proof.ipynb), [Bob](http://localhost:8889/notebooks/2%20Credentials/Part%203%20-%20Present%20Proof.ipynb) (must have completed Part 5)\n",
329-
"* Part 7: Basic Messaging: [Alice](http://localhost:8888/lab/tree/3%20Messages/Part%201%20-%20Basic%20Message.ipynb), [Bob](http://localhost:8889/notebooks/3%20Messages/Part%201%20-%20Basic%20Message.ipynb)\n"
327+
"* Part 5: Issue Credential: [Alice](http://localhost:8888/lab/tree/2%20Credentials/Part%202%20-%20Issue%20Credential.ipynb), [Bob](http://localhost:8889/lab/tree/2%20Credentials/Part%202%20-%20Issue%20Credential.ipynb)\n",
328+
"* Part 6: Present Proof: [Alice](http://localhost:8888/lab/tree/2%20Credentials/Part%203%20-%20Present%20Proof.ipynb), [Bob](http://localhost:8889/lab/tree/2%20Credentials/Part%203%20-%20Present%20Proof.ipynb) (must have completed Part 5)\n",
329+
"* Part 7: Basic Messaging: [Alice](http://localhost:8888/lab/tree/3%20Messages/Part%201%20-%20Basic%20Message.ipynb), [Bob](http://localhost:8889/lab/tree/3%20Messages/Part%201%20-%20Basic%20Message.ipynb)\n"
330330
]
331331
}
332332
],
@@ -346,7 +346,7 @@
346346
"name": "python",
347347
"nbconvert_exporter": "python",
348348
"pygments_lexer": "ipython3",
349-
"version": "3.7.6"
349+
"version": "3.8.5"
350350
}
351351
},
352352
"nbformat": 4,

0 commit comments

Comments
 (0)