Building our Auth Server
For our authentication server, we must perform the following operations:
Create users
Login
Logout
Authentication servers will also handle other processes such as deleting users, blocking them, allocation roles and much more. However, there comes a point to where implementing extra authentication features adds bloat to the chapter with diminishing educational returns. By the end of this chapter, you will be able to understand the processes to add extra functions.
Our authentication server should be housed in the nanoservices/core
directory. Our authentication server has the following file structure:
├── core
│ ├── . . .
├── dal
│ ├── . . .
└── networking
└── . . .
We will investigate each section in more detail. There is a lot of repetition compared to the to-do server when it comes to generic boilerplate of making...