auth

package
v8.42.1698085480-SHA-e... Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package auth provides credential helpers for connecting to Spacetime APIs.

Users will create a Config and call NewCredentials to create a google.golang.org/grpc/credentials.PerRPCCredentials instance that can be used with the google.golang.org/grpc.WithPerRPCCredentials dial option to authenticate RPCs. See the auth documentation for more information.

Index

Constants

View Source
const (
	GoogleOIDCURL = "https://www.googleapis.com/oauth2/v4/token"
)

Variables

This section is empty.

Functions

func NewCredentials

func NewCredentials(ctx context.Context, c Config) (credentials.PerRPCCredentials, error)

NewCredentials creates a credentials.PerRPCCredentials implementation that can be used to authenticate outgoing gRPC requests with Spacetime services.

Types

type Config

type Config struct {
	Clock        clockwork.Clock
	PrivateKey   io.Reader
	PrivateKeyID string
	Email        string
}

Directories

Path Synopsis
Package authtest provides helpers for testing functionality that uses the auth package.
Package authtest provides helpers for testing functionality that uses the auth package.

Jump to

Keyboard shortcuts

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