Skip to content

Change authentication #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 1, 2024
Merged

Change authentication #31

merged 3 commits into from
Oct 1, 2024

Conversation

carson-coder
Copy link
Contributor

Change authentication to support authentication in userspace instead of world space.

Adds

  • Separate send / receive sockets

To Connect

  • Connect to ws://localhost:5050/recv and get a id (8 digit hex number). This is the receiving socket
  • Connect to whatever end point (eg. ws://localhost:5050/code) and send that id. This will be the sending socket
  • Then the server will send [password] to the sending socket
  • The sending socket will send the password
  • The server will then respond with [correct] in which case the sending socket can start sending code. and the recv socket will recv the output
  • Or the server will respond with [wrong] and close the socket.

The last four steps are the same authentication protocol as last time.
The authentication only happens on the sending socket.

Setup in game (TODO)

Connect to recv endpoint - world space
put id in cloud var - world space
read cloud var and connect to end point - user space

Sending Code

Put code in cloud var - world space
Read cloud var and send code - user space
recv code output through recv socket - world spcae

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@charlie-sans charlie-sans merged commit 8feb381 into charlie-sans:dev Oct 1, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants