Basic HTTP Authentication
- Setup a simple login page with user name and password.
- Since we using in docker no need for registration becouse the user name and password will be stored in environment variable in
docker run -e user=<username> -e pass=<pass> command.
- Username must be at least 4 characters long.
- Password: The password must be at least 6 characters long to include letters and numbers.
- When the server is up, check the values of the username and password to make sure they are validate , in case is not, the application should not be dropped with an appropriate error message.
please implement:
- Auth Guard.
- Authentication Interceptor.
Basic HTTP Authentication
docker run -e user=<username> -e pass=<pass>command.please implement: