Adding authentication
Building the application requires some consideration in terms of designing the application, and one of the key pieces that needs to be thought of ahead of time is security. There are many facets of security but in this section of our application, we will look at authentication.
Note
Authentication is the process of validating that a user is who they claim to be.
To add authentication to our app, we will need to store the user information in the database first. The user information will be used to authenticate the user before using the application. The database user table can be found inside the db/schema.sql
file:
CREATE TABLE gowebapp.users ( User_ID BIGSERIAL PRIMARY KEY, User_Name text NOT NULL, Password_Hash text NOT NULL, Name text NOT NULL, Config ...