Skip to content

Commit 3384ffb

Browse files
committed
Updated script to extract notebook token values
1 parent e3a8ddd commit 3384ffb

File tree

5 files changed

+203
-38
lines changed

5 files changed

+203
-38
lines changed

scripts/get_URLS.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#script to get notebook URLs
2-
for i in `docker ps --format "table {{.Names}}" | grep notebook`; do port=$(docker port $i 8888/tcp | cut -d":" -f2);token=$(docker logs $i 2>&1 | grep "127.0.0.1):8888/" | cut -d"=" -f2 | head -1); echo "$i - http://127.0.0.1:$port/?token=$token"; done
2+
for i in `docker ps --format "table {{.Names}}" | grep notebook`; do port=$(docker port $i 8888/tcp | cut -d":" -f2);token=$(docker logs $i 2>&1 | grep "127.0.0.1:8888/" | cut -d"=" -f2 | head -1); echo "$i - http://127.0.0.1:$port/?token=$token"; done

tutorials/aries-basic-controller/notebooks/alice/Part 1 - Self-Sovereign Identity.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7+
"\n",
8+
"\n",
9+
"\n",
10+
"\n",
11+
"\n",
12+
"\n",
713
"# Self-Sovereign Identity\n",
814
"\n",
915
"Welcome to the OpenMined tutorial designed to teach you the basics of a new approach for digital identification, authorisation and authentication commonly referred to as Self-Sovereign Identity (SSI).\n",
@@ -146,4 +152,4 @@
146152
},
147153
"nbformat": 4,
148154
"nbformat_minor": 4
149-
}
155+
}

tutorials/aries-basic-controller/notebooks/alice/Part 6 - Present Proof.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,4 +394,4 @@
394394
},
395395
"nbformat": 4,
396396
"nbformat_minor": 1
397-
}
397+
}

tutorials/aries-stagingnet/notebooks/issuer/Part 2 - Writing a Public DID to the Sovrin StagingNet.ipynb

Lines changed: 136 additions & 22 deletions
Large diffs are not rendered by default.

tutorials/aries-stagingnet/notebooks/issuer/Part 3 - Issue Credential.ipynb

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": null,
27+
"execution_count": 1,
2828
"metadata": {},
29-
"outputs": [],
29+
"outputs": [
30+
{
31+
"name": "stdout",
32+
"output_type": "stream",
33+
"text": [
34+
"IPython autoawait is `on`, and set to use `asyncio`\n"
35+
]
36+
}
37+
],
3038
"source": [
3139
"%autoawait\n",
3240
"import time\n",
@@ -57,7 +65,7 @@
5765
},
5866
{
5967
"cell_type": "code",
60-
"execution_count": null,
68+
"execution_count": 2,
6169
"metadata": {},
6270
"outputs": [],
6371
"source": [
@@ -105,7 +113,7 @@
105113
},
106114
{
107115
"cell_type": "code",
108-
"execution_count": null,
116+
"execution_count": 3,
109117
"metadata": {},
110118
"outputs": [],
111119
"source": [
@@ -152,9 +160,17 @@
152160
},
153161
{
154162
"cell_type": "code",
155-
"execution_count": null,
163+
"execution_count": 4,
156164
"metadata": {},
157-
"outputs": [],
165+
"outputs": [
166+
{
167+
"name": "stdout",
168+
"output_type": "stream",
169+
"text": [
170+
"Jqi9JNk9Z637azKekx51V4:3:CL:142409:default\n"
171+
]
172+
}
173+
],
158174
"source": [
159175
"response = await agent_controller.definitions.write_cred_def(schema_id)\n",
160176
"\n",
@@ -188,9 +204,19 @@
188204
},
189205
{
190206
"cell_type": "code",
191-
"execution_count": null,
207+
"execution_count": 5,
192208
"metadata": {},
193-
"outputs": [],
209+
"outputs": [
210+
{
211+
"name": "stdout",
212+
"output_type": "stream",
213+
"text": [
214+
"Please enter your name and surname: Joe\n",
215+
"Please enter your age: 28\n",
216+
"[{'name': 'fullname', 'value': 'Joe'}, {'name': 'skill', 'value': 'PyDentity SSI Ninja'}, {'name': 'age', 'value': '28'}]\n"
217+
]
218+
}
219+
],
194220
"source": [
195221
"name=input(\"Please enter your name and surname: \")\n",
196222
"age=input(\"Please enter your age: \")\n",
@@ -230,9 +256,17 @@
230256
},
231257
{
232258
"cell_type": "code",
233-
"execution_count": null,
259+
"execution_count": 6,
234260
"metadata": {},
235-
"outputs": [],
261+
"outputs": [
262+
{
263+
"name": "stdout",
264+
"output_type": "stream",
265+
"text": [
266+
"EXISTING CONNECTIONS\n"
267+
]
268+
}
269+
],
236270
"source": [
237271
"# Check for existing connections\n",
238272
"connection = await agent_controller.connections.get_connections()\n",
@@ -251,9 +285,20 @@
251285
},
252286
{
253287
"cell_type": "code",
254-
"execution_count": null,
288+
"execution_count": 7,
255289
"metadata": {},
256-
"outputs": [],
290+
"outputs": [
291+
{
292+
"name": "stdout",
293+
"output_type": "stream",
294+
"text": [
295+
"Connection message {'invitation_mode': 'once', 'created_at': '2021-01-20 08:38:21.097819Z', 'state': 'invitation', 'invitation_key': '432bz3xmHA7QT4zZBs1ZYLbxTv4G12d1NygHUhnnNx9m', 'updated_at': '2021-01-20 08:38:21.097819Z', 'connection_id': 'adfc5ffc-1560-4075-99cd-45f238b8346b', 'accept': 'auto', 'initiator': 'self', 'routing_state': 'none'} adfc5ffc-1560-4075-99cd-45f238b8346b\n",
296+
"Connection ID adfc5ffc-1560-4075-99cd-45f238b8346b\n",
297+
"Invitation\n",
298+
"https://1ae2ec7766b1.ngrok.io?c_i=eyJAdHlwZSI6ICJkaWQ6c292OkJ6Q2JzTlloTXJqSGlxWkRUVUFTSGc7c3BlYy9jb25uZWN0aW9ucy8xLjAvaW52aXRhdGlvbiIsICJAaWQiOiAiNmNjZGIwMWQtYThjNi00NDNlLThmMWEtOThiMzIwMWFiOThmIiwgInJlY2lwaWVudEtleXMiOiBbIjQzMmJ6M3htSEE3UVQ0elpCczFaWUxieFR2NEcxMmQxTnlnSFVobm5OeDltIl0sICJzZXJ2aWNlRW5kcG9pbnQiOiAiaHR0cHM6Ly8xYWUyZWM3NzY2YjEubmdyb2suaW8iLCAibGFiZWwiOiAiSVNTVUVSIn0=\n"
299+
]
300+
}
301+
],
257302
"source": [
258303
"# Create Invitation\n",
259304
"invite = await agent_controller.connections.create_invitation()\n",
@@ -420,4 +465,4 @@
420465
},
421466
"nbformat": 4,
422467
"nbformat_minor": 1
423-
}
468+
}

0 commit comments

Comments
 (0)