Documentation
¶
Index ¶
- Constants
- Variables
- type AuthenticationHelper
- func (AuthenticationHelper) ExtractAccessToken(echoContext echo.Context) (accessToken tkValueObject.AccessTokenValue, err error)
- func (AuthenticationHelper) ExtractIpAddress(echoContext echo.Context) (tkValueObject.IpAddress, error)
- func (AuthenticationHelper) ReadAccessTokenAccountId(authQueryRepo repository.AuthQueryRepo, ...) (accountId tkValueObject.AccountId, err error)
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)
Click to show internal directories.
Click to hide internal directories.