sharedHelper

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: EPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizationHeader string = "Authorization"

Variables

View Source
var (
	ErrMissingAuthorizationHeader error = errors.New(
		"MissingAuthorizationHeader",
	)
	ErrAuthorizationHeaderMissingBearerPrefix error = errors.New(
		"AuthorizationHeaderMissingBearerPrefix",
	)
)
View Source
var LocalOperatorAccountId = tkValueObject.AccountIdSystem
View Source
var LocalOperatorIpAddress = tkValueObject.IpAddressLocal

Functions

This section is empty.

Types

type AuthenticationHelper added in v0.3.1

type AuthenticationHelper struct{}

func (AuthenticationHelper) ExtractAccessToken added in v0.3.1

func (AuthenticationHelper) ExtractAccessToken(
	echoContext echo.Context,
) (accessToken tkValueObject.AccessTokenValue, err error)

func (AuthenticationHelper) ExtractIpAddress added in v0.3.1

func (AuthenticationHelper) ExtractIpAddress(
	echoContext echo.Context,
) (tkValueObject.IpAddress, error)

func (AuthenticationHelper) ReadAccessTokenAccountId added in v0.3.1

func (AuthenticationHelper) ReadAccessTokenAccountId(
	authQueryRepo repository.AuthQueryRepo,
	accessToken tkValueObject.AccessTokenValue,
	userIpAddress tkValueObject.IpAddress,
) (accountId tkValueObject.AccountId, err error)

Jump to

Keyboard shortcuts

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