ssh

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserExtractor auth.JWTUserExtractor = ue
	ClaimsFactory kittjwt.ClaimsFactory = func() stdjwt.Claims {
		return &Claims{}
	}

	SigningMethodSSH stdjwt.SigningMethod = &sshAgent{}
	GRPCJWTExtractor                      = kittgrpc.ServerRequestFunc(gRPCJWTExtractor)
)
View Source
var ErrKeyNotFound = errors.New("key not found")

Functions

func GRPCAuth

func GRPCAuth(subject string) credentials.PerRPCCredentials

func NewKeyRing

func NewKeyRing(r io.Reader) (*sshKeyRing, error)

Types

type Claims

type Claims jwt.Claims

func (*Claims) Valid

func (c *Claims) Valid() error

type SSHUser

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

func (*SSHUser) Details

func (u *SSHUser) Details() map[string]string

func (*SSHUser) DisplayName

func (u *SSHUser) DisplayName() (string, error)

func (*SSHUser) Email

func (u *SSHUser) Email() string

func (*SSHUser) UniqueID

func (u *SSHUser) UniqueID() []byte

Jump to

Keyboard shortcuts

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