Skip to content

Commit

Permalink
Merge pull request #8165 from OpenMined/fix_guest_login
Browse files Browse the repository at this point in the history
Fix guest login
  • Loading branch information
rasswanth-s authored Oct 16, 2023
2 parents bc51964 + bd61425 commit 69c2741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/syft/src/syft/service/network/network_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,9 @@ def add_peer(
message="verify_key does not match the remote node's verify_key for add_peer"
)

remote_client = peer.client_with_context(context=context)
random_challenge = secrets.token_bytes(16)

try:
remote_client = peer.client_with_context(context=context)
random_challenge = secrets.token_bytes(16)
remote_res = remote_client.api.services.network.ping(
challenge=random_challenge
)
Expand Down
4 changes: 1 addition & 3 deletions tests/integration/network/gateway_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@


def test_domain_connect_to_gateway(domain_1_port, gateway_port):
gateway_client: GatewayClient = sy.login(
port=gateway_port, email="[email protected]", password="changethis"
)
gateway_client: GatewayClient = sy.login_as_guest(port=gateway_port)

domain_client: DomainClient = sy.login(
port=domain_1_port, email="[email protected]", password="changethis"
Expand Down

0 comments on commit 69c2741

Please sign in to comment.