server

package
v0.0.0-...-e184c60 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthServerInterceptor

func AuthServerInterceptor() grpc.UnaryServerInterceptor

AuthServerInterceptor build inerceptor that verifies access to auth handler.

func CredStoreServerInterceptor

func CredStoreServerInterceptor() grpc.UnaryServerInterceptor

CredStoreServerInterceptor build inerceptor that verifies access to auth handler.

Types

type AuthServer

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

AuthServer implements CredStoreAuth service.

func NewAuthServer

func NewAuthServer(signingKey *ecdsa.PrivateKey, config *config.Config) (*AuthServer, error)

NewAuthServer returns a new AuthServer.

func (AuthServer) Auth

func (s AuthServer) Auth(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)

Auth takes in a static jwt (bundled into the binary) and returns a session jwt, useable for other RPCs with credstore.

func (AuthServer) SigningKey

SigningKey returns the currently used public key.

type CredStoreServer

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

CredStoreServer implements CredStore service.

func NewCredStoreServer

func NewCredStoreServer(signingKey *ecdsa.PrivateKey, config *config.Config) (*CredStoreServer, error)

NewCredStoreServer returns a new CredStoreServer.

func (CredStoreServer) GetToken

GetToken provides a JWT token for remote endpoint based on its DNS name.

Jump to

Keyboard shortcuts

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