auth

package
v0.0.0-...-695150b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package auth ...

Package auth ...

Index

Constants

This section is empty.

Variables

Lock defines mutex lock to avoid race conditions

Functions

func Auth

func Auth(req *authproto.AuthRequest) (int32, string)

Auth functinality will do the following

  1. It will check whether the session taken is valid
  2. fetch the previleges from DB against session token and check the service has the previlege

func CheckSessionCreationCredentials

func CheckSessionCreationCredentials(userName, password string) (*asmodel.User, *errors.Error)

CheckSessionCreationCredentials defines the auth at the time of session creation

func CheckSessionTimeOut

func CheckSessionTimeOut(sessionToken string) (*asmodel.Session, *errors.Error)

CheckSessionTimeOut defines the session validity check

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL