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 ¶
func (s AuthServer) SigningKey(context.Context, *pb.SigningKeyRequest) (*pb.SigningKeyReply, error)
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 ¶
func (s CredStoreServer) GetToken(ctx context.Context, req *pb.GetTokenRequest) (*pb.GetTokenReply, error)
GetToken provides a JWT token for remote endpoint based on its DNS name.
Click to show internal directories.
Click to hide internal directories.