grpcjwt

package module
v0.0.0-...-e9402ea Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromClient

func NewFromClient(client *jwtclient.Client) (credentials.PerRPCCredentials, error)

NewFromClient is used to create a new grpc credentials receiver which conforms to the credentials interface.

Types

type Creds

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

Creds is our PerRPCCredentials implementation receiver struct.

func (*Creds) GetRequestMetadata

func (c *Creds) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

GetRequestMetadata will retrieve a JWT from the provided client.

func (*Creds) RequireTransportSecurity

func (c *Creds) RequireTransportSecurity() bool

RequireTransportSecurity is required by the interface and should return true. TODO: Return true.

Jump to

Keyboard shortcuts

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