goconnect

package module
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthorizationKey is the key for the authorization header and gRPC metadata
	AuthorizationKey = "Authorization"

	// RefreshTokenCookieName is the name of the refresh token cookie
	RefreshTokenCookieName = "X-Refresh-Token"

	// AccessTokenCookieName is the name of the access token cookie
	AccessTokenCookieName = "X-Access-Token"

	// XForwardedForKey is the key for the X-Forwarded-For header
	XForwardedForKey = "X-Forwarded-For"

	// RemoteAddrKey is the key for the remote address
	RemoteAddrKey = "Remote-Addr"
)

Variables

View Source
var (
	ErrInvalidAuthorization = errors.New("invalid authorization HTTP header or gRPC metadata")
	ErrMissingAuthorization = errors.New("missing authorization HTTP header or gRPC metadata")
	ErrClientIPNotFound     = errors.New("client IP address not found in request context")
)
View Source
var (
	// AuthHeaders are the headers used for authentication
	AuthHeaders = []string{
		AuthorizationKey,
		RefreshTokenCookieName,
		AccessTokenCookieName,
	}
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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