This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Go, Go, Go! #3
Comments
Merged
cheetahbyte
pushed a commit
that referenced
this issue
Jul 22, 2023
- added handler hostname to identify the worker that processed the request. #3
cheetahbyte
pushed a commit
that referenced
this issue
Jul 22, 2023
- session ID will be added to redis cache with a ttl #3
cheetahbyte
pushed a commit
that referenced
this issue
Jul 22, 2023
- add DB_HOST, DB_PORT, DB_USER, DB_PASS, DB_NAME to gorm Config - add REDIS_HOST, REDIS_PORT, REDIS_PASS to redis config - add PEPPER to password encryption and comparaison #3
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Go Rewrite
Let's rewrite this service in Go.
Events
These are the events the service is going to listen on:
auth.initial
: This creates the account for the user containingpassword_hash
and theverified
flag.auth.login
: This event is used to login a user and return its session id.auth.session.get
: This event returns all active sessions. #6auth.verify
: This event is used to verify a users account #4auth.session.exists
: This event checks if the current session exists in redis #8(To be added in Future)
auth.password-change
: This changes the password.auth.mfa
: This event is used to activate the mfa usingTOTP
orEOTP
.auth.mfa.validate
: This event is used to validate the token submitted by the user.auth.logout
: This event is used to logout.auth.session.purge
: This event clears all current sessions from redis and the database.Interface
It's important that all services share the same interface, more or less.
The interface that's going to be used (JSON) looks like this.
The text was updated successfully, but these errors were encountered: