auth

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ClientHeaderKey = "client-id"
	ClientSecretKey = "client-secret"
)

Variables

This section is empty.

Functions

func GetClientCredential added in v1.0.0

func GetClientCredential(ctx context.Context) (clientId, clientSecret string)

func GetClientId added in v0.0.6

func GetClientId(ctx context.Context) string

Types

type Authentication

type Authentication struct {
	// contains filtered or unexported fields
}

Authentication todo

func NewAuthentication

func NewAuthentication(clientId, clientSecret string) *Authentication

func (*Authentication) GetRequestMetadata

func (a *Authentication) GetRequestMetadata(context.Context, ...string) (
	map[string]string, error,
)

GetRequestMetadata todo

func (*Authentication) RequireTransportSecurity

func (a *Authentication) RequireTransportSecurity() bool

RequireTransportSecurity todo

func (*Authentication) SetClientCredentials

func (a *Authentication) SetClientCredentials(clientID, clientSecret string)

Jump to

Keyboard shortcuts

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