You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/networking/high_level_multiplayer.rst
+42
Original file line number
Diff line number
Diff line change
@@ -670,3 +670,45 @@ a dedicated server with no GPU available. See
670
670
server. You'll have to modify them so the server isn't considered to be a
671
671
player. You'll also have to modify the game starting mechanism so that the
672
672
first player who joins can start the game.
673
+
674
+
Authentication
675
+
--------------
676
+
677
+
Before hosting your game online to a public audience, you may want to consider adding authentication and protecting your RPCs against unauthenticated access.
678
+
For this you can use the :ref:`SceneMultiplayer <class_SceneMultiplayer>`'s builtin authentication mechanism.
# signal to the MultiplayerAPI that the authentication was successful
712
+
multiplayer.complete_auth(peer_id)
713
+
714
+
As soon as both, the client's and the the server's :ref:`complete_auth() <class_SceneMultiplayer_method_complete_auth>`, have been called, thet connection is considered to be established and the `connected_to_server` and `peer_connected` signals fire.
0 commit comments