Skip to content

Commit

Permalink
Merge pull request #7984 from dhreb/notebook-login-prompts
Browse files Browse the repository at this point in the history
Node Login Prompts
  • Loading branch information
IonesioJunior authored Aug 12, 2023
2 parents 1071e1f + 62d2a78 commit c4dd920
Show file tree
Hide file tree
Showing 34 changed files with 170 additions and 80 deletions.
4 changes: 2 additions & 2 deletions notebooks/api/0.8/00-load-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -680,7 +680,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
3 changes: 2 additions & 1 deletion notebooks/api/0.8/06-multiple-code-requests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
Expand Down Expand Up @@ -488,7 +489,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
16 changes: 8 additions & 8 deletions notebooks/api/0.8/07-domain-register-control-flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand All @@ -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"
]
},
Expand All @@ -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"
]
},
Expand Down Expand Up @@ -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"
]
},
Expand All @@ -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"
]
},
Expand Down Expand Up @@ -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"
]
},
Expand All @@ -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"
]
},
Expand Down Expand Up @@ -302,7 +302,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/api/0.8/08-code-version.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -276,7 +276,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand All @@ -293,5 +293,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
10 changes: 5 additions & 5 deletions notebooks/tutorials/data-owner/02-account-management.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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\")"
]
},
{
Expand All @@ -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\")"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/data-owner/03-messages-and-requests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -476,7 +476,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -543,7 +543,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/data-scientist/05-syft-functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -625,7 +625,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -346,7 +346,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
Expand Down Expand Up @@ -684,7 +685,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand All @@ -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\")"
]
},
{
Expand All @@ -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\")"
]
},
{
Expand Down Expand Up @@ -1034,7 +1034,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/hello-syft/01-hello-syft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
Expand Down Expand Up @@ -548,7 +548,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorials/model-auditing/colab/01-user-log.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
Expand Down Expand Up @@ -667,7 +667,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/\")"
]
},
{
Expand Down Expand Up @@ -847,7 +847,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1000,7 +1000,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.8"
},
"toc": {
"base_numbering": 1,
Expand Down
Loading

0 comments on commit c4dd920

Please sign in to comment.