auth

package
v0.0.0-...-d595cb9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(userRepo userDB.UserRepository, authorizationRepo authorizationDB.AuthorizationRepository) *authService

Types

type AuthService

type AuthService interface {
	Login(ctx context.Context, session *sessions.Session, req dto.LoginRequest) error
	ClearSession(ctx context.Context, session *sessions.Session)
	GetSessionData(ctx context.Context, session *sessions.Session) (SessionData, error)
}

type SessionData

type SessionData struct {
	Username   string                 `json:"username"`
	Permission rbac.PermissionMapping `json:"permission_code_mapping"`
}

Jump to

Keyboard shortcuts

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