Documentation ¶
Overview ¶
Package auth ...
Package auth ...
Index ¶
- Variables
- func Auth(ctx context.Context, req *authproto.AuthRequest) (int32, string)
- func CheckSessionCreationCredentials(ctx context.Context, userName, password string) (*asmodel.User, *errors.Error)
- func CheckSessionTimeOut(ctx context.Context, sessionToken string) (*asmodel.Session, *errors.Error)
- func CustomAuthLog(ctx context.Context, sessionToken, msg string, respStatusCode int32)
Constants ¶
This section is empty.
Variables ¶
View Source
var Lock sync.Mutex
Lock defines mutex lock to avoid race conditions
Functions ¶
func Auth ¶
Auth functionality will do the following
- It will check whether the session taken is valid
- fetch the privileges from DB against session token and check the service has the previlege
func CheckSessionCreationCredentials ¶
func CheckSessionCreationCredentials(ctx context.Context, userName, password string) (*asmodel.User, *errors.Error)
CheckSessionCreationCredentials defines the auth at the time of session creation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.