Login Authentication

Login authentication for blockchain-based games can be cumbersome. To solve this, we've collaborated with @Gekctek, the creator of ICP.NET, and @filharvey.icp. Together, we devised solutions for Unity ICP login authentication across multiple platforms: WebGL, iOS, Android, Windows, and Mac.

In order for Login Authentication to work, Unity communicates with a webpage that handles the NFID login. The Unity Template uses a default BOOM login webpage, but you can deploy your own login webpage with our code on github if you'd like.

For WebGL, Unity uses custom HTML that displays an iframe of the login webpage to manage the login flow, securely transferring the identity delegation back to the Unity client. You can see this HTML template in the Assets/WebGLTemplates/BoomTemplate folder in the Unity Template project.

On all other platforms, we utilize local websockets to ensure secure transmission of the identity delegation from the login webpage to the Unity client.

All these login flows are supported in the Unity Template.

Last updated