-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7984 from dhreb/notebook-login-prompts
Node Login Prompts
- Loading branch information
Showing
34 changed files
with
170 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -647,7 +647,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"domain_client.register(name=\"Jane Doe\", email=\"[email protected]\", password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
"domain_client.register(name=\"Jane Doe\", email=\"[email protected]\", password=\"abc123\", password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -680,7 +680,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.11.3" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,7 @@ | |
"root_client.register(name=\"Sheldon Cooper\",\n", | ||
" email=\"[email protected]\",\n", | ||
" password=\"abc123\",\n", | ||
" password_verify=\"abc123\",\n", | ||
" institution=\"Caltech\",\n", | ||
" website=\"https://www.caltech.edu/\")" | ||
] | ||
|
@@ -488,7 +489,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.7" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user using root credentials\n", | ||
"response_1 = root_client.register(email=\"[email protected]\", password=\"joker123\", name=\"Joker\")\n", | ||
"response_1 = root_client.register(email=\"[email protected]\", password=\"joker123\", password_verify=\"joker123\", name=\"Joker\")\n", | ||
"response_1" | ||
] | ||
}, | ||
|
@@ -98,7 +98,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user as a GUEST\n", | ||
"response_2 = node.register(email=\"[email protected]\", password=\"1rIzHAx6uQaP\", name=\"Batman\")\n", | ||
"response_2 = node.register(email=\"[email protected]\", password=\"1rIzHAx6uQaP\",password_verify=\"1rIzHAx6uQaP\", name=\"Batman\")\n", | ||
"response_2" | ||
] | ||
}, | ||
|
@@ -110,7 +110,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user as a GUEST\n", | ||
"response_3 = node.register(email=\"[email protected]\", password=\"5v1ei4OM2N4m\", name=\"Robin\")\n", | ||
"response_3 = node.register(email=\"[email protected]\", password=\"5v1ei4OM2N4m\",password_verify=\"5v1ei4OM2N4m\", name=\"Robin\")\n", | ||
"response_3" | ||
] | ||
}, | ||
|
@@ -176,7 +176,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user as a GUEST\n", | ||
"response_2 = node.register(email=\"[email protected]\", password=\"1rIzHAx6uQaP\", name=\"Batman\")\n", | ||
"response_2 = node.register(email=\"[email protected]\", password=\"1rIzHAx6uQaP\",password_verify=\"1rIzHAx6uQaP\", name=\"Batman\")\n", | ||
"response_2" | ||
] | ||
}, | ||
|
@@ -188,7 +188,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user as a GUEST\n", | ||
"response_3 = node.register(email=\"[email protected]\", password=\"5v1ei4OM2N4m\", name=\"Robin\")\n", | ||
"response_3 = node.register(email=\"[email protected]\", password=\"5v1ei4OM2N4m\",password_verify=\"5v1ei4OM2N4m\", name=\"Robin\")\n", | ||
"response_3" | ||
] | ||
}, | ||
|
@@ -243,7 +243,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user as a GUEST\n", | ||
"response_2 = node.register(email=\"[email protected]\", password=\"SKY5cC2zQPRP\", name=\"Bane\")\n", | ||
"response_2 = node.register(email=\"[email protected]\", password=\"SKY5cC2zQPRP\",password_verify=\"SKY5cC2zQPRP\", name=\"Bane\")\n", | ||
"response_2" | ||
] | ||
}, | ||
|
@@ -255,7 +255,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Register a new user as a GUEST\n", | ||
"response_3 = node.register(email=\"[email protected]\", password=\"7eVGUuNDyH8P\", name=\"Riddler\")\n", | ||
"response_3 = node.register(email=\"[email protected]\", password=\"7eVGUuNDyH8P\",password_verify=\"7eVGUuNDyH8P\", name=\"Riddler\")\n", | ||
"response_3" | ||
] | ||
}, | ||
|
@@ -302,7 +302,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.7" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"domain_client.register(name=\"Jane Doe\", email=\"[email protected]\", password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
"domain_client.register(name=\"Jane Doe\", email=\"[email protected]\", password=\"abc123\", password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -276,7 +276,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
@@ -293,5 +293,5 @@ | |
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
"nbformat_minor": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,7 +293,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"client.register(email=\"[email protected]\", password=\"joker123\", name=\"Joker\")" | ||
"client.register(email=\"[email protected]\", password=\"joker123\", password_verify=\"joker123\", name=\"Joker\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -331,7 +331,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"new_user.register(email=\"[email protected]\", password=\"batman123\", name=\"Batman\")" | ||
"new_user.register(email=\"[email protected]\", password=\"batman123\",password_verify=\"batman123\", name=\"Batman\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -359,7 +359,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"new_user.register(email=\"[email protected]\", password=\"batman123\", name=\"Batman\")" | ||
"new_user.register(email=\"[email protected]\", password=\"batman123\",password_verify=\"batman123\", name=\"Batman\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -397,7 +397,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"new_user.register(email=\"[email protected]\", password=\"harley123\", name=\"Harley\")" | ||
"new_user.register(email=\"[email protected]\", password=\"harley123\",password_verify=\"harley123\", name=\"Harley\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -407,7 +407,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"client.register(email=\"[email protected]\", password=\"robin123\", name=\"Robin\")" | ||
"client.register(email=\"[email protected]\", password=\"robin123\",password_verify=\"robin123\", name=\"Robin\")" | ||
] | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"admin_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -476,7 +476,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"root_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -543,7 +543,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"admin_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -625,7 +625,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"admin_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -346,7 +346,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,7 +295,8 @@ | |
" res = client.register(\n", | ||
" name = \"Sheldon\",\n", | ||
" email = \"[email protected]\",\n", | ||
" password = \"changethis\"\n", | ||
" password = \"changethis\",\n", | ||
" password_verify=\"changethis\",\n", | ||
" )\n", | ||
" assert isinstance(res, SyftSuccess)" | ||
] | ||
|
@@ -684,7 +685,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -455,7 +455,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"for client in [do_ca_client_low, do_it_client_low]:\n", | ||
" client.register(name=\"Sheldon\", email=\"[email protected]\", password=\"changethis\")" | ||
" client.register(name=\"Sheldon\", email=\"[email protected]\", password=\"changethis\", password_verify=\"changethis\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -465,7 +465,7 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"embassador_client_low.register(name=\"Sheldon\", email=\"[email protected]\", password=\"changethis\")" | ||
"embassador_client_low.register(name=\"Sheldon\", email=\"[email protected]\", password=\"changethis\", password_verify=\"changethis\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -492,7 +492,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"for client in [do_ca_client_high, do_it_client_high]:\n", | ||
" client.register(name=\"Sheldon\", email=\"[email protected]\", password=\"changethis\")" | ||
" client.register(name=\"Sheldon\", email=\"[email protected]\", password=\"changethis\", password_verify=\"changethis\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -1034,7 +1034,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.11.4" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ | |
"node = sy.orchestra.launch(name=\"hello-syft-usa-server\", port=9000, reset=True)\n", | ||
"root_domain_client = node.login(email=\"[email protected]\", password=\"changethis\")\n", | ||
"root_domain_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")\n", | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")\n", | ||
"\n", | ||
"ds_client = node.login(email=\"[email protected]\", password=\"abc123\")" | ||
] | ||
|
@@ -548,7 +548,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,7 +289,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"auditor_client = node.register(name=\"Peter Jones\", email=\"[email protected]\", password=\"password1234\")\n", | ||
"auditor_client = node.register(name=\"Peter Jones\", email=\"[email protected]\", password=\"password1234\", password_verify=\"password1234\")\n", | ||
"auditor_client = node.login(email=\"[email protected]\", password=\"password1234\")" | ||
] | ||
}, | ||
|
@@ -667,7 +667,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.7" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,6 +329,7 @@ | |
"register_result = root_client.register(name=\"Sheldon Cooper\",\n", | ||
" email=\"[email protected]\",\n", | ||
" password=\"changethis\",\n", | ||
" password_verify=\"changethis\",\n", | ||
" institution=\"Caltech\",\n", | ||
" website=\"https://www.caltech.edu/\")" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,7 +254,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"user = root_domain_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -847,7 +847,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -321,7 +321,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"user = domain_client.register(name=\"Jane Doe\", email=\"[email protected]\",\n", | ||
" password=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")\n", | ||
" password=\"abc123\",password_verify=\"abc123\", institution=\"Caltech\", website=\"https://www.caltech.edu/\")\n", | ||
"\n", | ||
"# todo: give user data scientist role\n", | ||
"\n", | ||
|
@@ -1000,7 +1000,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
"version": "3.10.8" | ||
}, | ||
"toc": { | ||
"base_numbering": 1, | ||
|
Oops, something went wrong.