auth

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethod

type AuthMethod interface {
	AddAuthHeaders(req *http.Request) error
}

func NewApiKeyAuthenticator

func NewApiKeyAuthenticator(apiKey, headerName string) AuthMethod

NewApiKeyAuthenticator creates an AuthMethod that adds an Authorization header containing the provided API key. If headerName is non-empty, it will be used instead of "Authorization". Connect accepts both "Authorization" and "X-Rsc-Authorization" to support certain proxy configurations upstream of Connect.

func NewClientAuth

func NewClientAuth(acct *accounts.Account) AuthMethod

func NewNullAuthenticator

func NewNullAuthenticator() AuthMethod

Jump to

Keyboard shortcuts

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