Enable Login

ObjectNet provides a full login feature to protect your game ensuring that players on the game need to be logged.

Login provided work in two steps:

chevron-rightLogin Providerhashtag

Login Provider is how ObjectNet collects a login information to perform login authentication operation.

To collect login information you need to create a login provider script that implements the interface IInformationProvider to interact with your UI ( see Providers Scripts ).

This script shall implement two methods, one to collect information and another to identify each parameter type ( Boolean, String, Integer, etc ... )..

You can also check the example script LoginInformationProvider in the examples folder. This script has a full implementation of how to provide login information.

You can also check a full example scene "02 - Login".

In this example, you have a full example of how to implement your custom login including a UI.

You can use the following users and passwords to test it.

chevron-rightEnable Validationhashtag

Login Validation is how ObjectNet checks if authentication data is valid or not.

After data is collected, ObjectNet needs to check if this information is valid. To do this ObjectNet uses another script that implements the interface IInformationProvider to validate the information ( see Providers Scripts ).

This script shall implement a method to check this user against any authentication service such as Database, WebService, PlayFab, Steam, or any other.

You can also check the example script LoginValidationProvider in the examples folder. This script has a full implementation of how to validate login information.

You can also check the full example scene "02 - Login".

In this example, you have a full example of how to implement your custom login including a UI.

You can use the following users and passwords to test it.