interfaces

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationFlow

type AuthorizationFlow interface {
	Authorize(request *models.OAuthLoginRequest, tenant string) (*models.OAuthLoginResponse, *models.OAuthErrorResponse)
	RefreshToken(request *models.OAuthLoginRequest, tenant string) (*models.OAuthLoginResponse, *models.OAuthErrorResponse)
	ValidateEmailToken(request *models.OAuthLoginRequest, tenant string) (*models.OAuthLoginResponse, *models.OAuthErrorResponse)
}

type KeyVault

type KeyVault interface {
	Get()
}

type UserContextAdapter

type UserContextAdapter interface {
	GetUserById(id string) *dto.UserDTO
	GetUserByEmail(email string) *dto.UserDTO
	GetUserByUsername(username string) *dto.UserDTO
	GetUser(id string) *dto.UserDTO
	UpsertUser(user dto.UserDTO) error
	RemoveUser(id string) bool
	UpdateUserPassword(id string, password string) error
	GetUserRefreshToken(id string) *string
	UpdateUserRefreshToken(id string, token string) bool

	// RecoveryTokens
	CleanUserRecoveryToken(id string) error
	GetUserRecoveryToken(id string) *string
	UpdateUserRecoveryToken(id string, token string) bool

	CleanUserEmailVerificationToken(id string) error
	GetUserEmailVerificationToken(id string) *string
	UpdateUserEmailVerificationToken(id string, token string) bool
	SetEmailVerificationState(id string, state bool) bool

	GetUserRolesById(id string) []dto.UserRoleDTO
	UpsertUserRoles(user dto.UserDTO) error
	GetUserClaimsById(id string) []dto.UserClaimDTO
	UpsertUserClaims(user dto.UserDTO) error
}

Jump to

Keyboard shortcuts

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