JWT for authentication. This requires a key. H256 algo will be used to generate the signature.
JWT has the following components
- Header [base64 encoded]
- Payload [base64 encoded]
- Signature [combination of header and payload hashed using a private key]
This will be used for Documenting the API
- Full Name
- Password hash
- Username
- CreateDate
- Using Gorilla MUX for Routing and Subroutes
- Implementing my own JWT Logic
- Creation of Modules and handling module specific data
- Writing Handlers for Sign In and Sign Up
- Creating Middleware
- Containerize the Application using Docker
curl http://localhost:9090/auth/signin --header 'Email:[email protected]' --header 'Passwordhash:hashedme1'
curl http://localhost:9090/auth/signup --request POST --header 'Email:[email protected]' --header 'Passwordhash:hashedme1' --header 'Username:user77' --header 'Fullname:test user'