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 ¶
Click to show internal directories.
Click to hide internal directories.