Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamInterceptor ¶
func StreamInterceptor(oidcc oauth2.TokenSource, bypassMethods ...string) grpc.StreamClientInterceptor
StreamInterceptor is a stream interceptor.
func UnaryInterceptor ¶
func UnaryInterceptor(oidcc oauth2.TokenSource, bypassMethods ...string) grpc.UnaryClientInterceptor
UnaryInterceptor is an unary interceptor.
Types ¶
type InsecureTokenSource ¶
type InsecureTokenSource struct {
oauth2.TokenSource
}
InsecureTokenSource supplies PerRPCCredentials from an oauth2.TokenSource.
func (InsecureTokenSource) GetRequestMetadata ¶
func (its InsecureTokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
GetRequestMetadata gets the request metadata as a map from a TokenSource.
func (InsecureTokenSource) RequireTransportSecurity ¶
func (its InsecureTokenSource) RequireTransportSecurity() bool
RequireTransportSecurity indicates whether the credentials requires transport security.
Click to show internal directories.
Click to hide internal directories.