mhlab

A journey through multiplayer games engineering

Backend Services for Games - Auth Service #2

In the previous article I’ve built the authentication functionality. It outputs the previously mentioned Auth Token: a token that allows the client to call protected API in a safe way. But, as I said, a new problem arises: The user must be able to continue with their session without providing login credentials every few minutes. Refresh the token The easiest method to implement the refreshing of the auth token is… Using the current and valid auth token to request a new one. Continue reading

Backend Services for Games - Auth Service #1

2021-04-10 11 min read Game Development Backend Emanuele Manzione
Let’s talk about the first service: the Auth Service. The project structure I can see you being so excited, but you need to wait a little bit more: I am starting a new project, so I first want to talk about how to organize it. I’ll code this service with C#, on ASP.NET 5. I create some C# projects: MHLab.Backend.Auth project: it contains the logic for the service itself. Continue reading