Documentation ¶
Index ¶
- type Authentication
- type Authorization
- func (auth Authorization) AuthorizeParticipantUser(next http.Handler) http.Handler
- func (auth Authorization) AuthorizeSuperOrParticipantUser(next http.Handler) http.Handler
- func (auth Authorization) AuthorizeSuperUser(next http.Handler) http.Handler
- func (auth Authorization) CheckTOTPPasscode(next http.Handler) http.Handler
- type UserClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func CreateAuthentication ¶
func CreateAuthentication(dbClient *database.MongoClient, dbName string, collName string, dbTimeout time.Duration) Authentication
func (Authentication) AuthenticateUser ¶
func (auth Authentication) AuthenticateUser(next http.Handler) http.Handler
type Authorization ¶
type Authorization struct {
// contains filtered or unexported fields
}
func CreateAuthorization ¶
func CreateAuthorization(dbClient *database.MongoClient, dbName string, userCollName string, permissionCollName string, dbTimeout time.Duration) Authorization
func (Authorization) AuthorizeParticipantUser ¶
func (auth Authorization) AuthorizeParticipantUser(next http.Handler) http.Handler
func (Authorization) AuthorizeSuperOrParticipantUser ¶
func (auth Authorization) AuthorizeSuperOrParticipantUser(next http.Handler) http.Handler
func (Authorization) AuthorizeSuperUser ¶
func (auth Authorization) AuthorizeSuperUser(next http.Handler) http.Handler
func (Authorization) CheckTOTPPasscode ¶
func (auth Authorization) CheckTOTPPasscode(next http.Handler) http.Handler
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.