auth

package
v0.0.0-...-5be8fc8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomName

func GenerateRandomName() string

Types

type AuthService

type AuthService struct {
	auth.UnimplementedAuthServer
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(secret string) (*AuthService, error)

func (*AuthService) GetCert

func (a *AuthService) GetCert(ctx context.Context, req *auth.Request) (*auth.Cert, error)

func (*AuthService) RenewCert

func (a *AuthService) RenewCert(ctx context.Context, c *auth.Cert) (*auth.Cert, error)

func (*AuthService) VerifCert

func (a *AuthService) VerifCert(ctx context.Context, c *auth.Cert) (*auth.CertStatus, error)

type JwtClaims

type JwtClaims struct {
	jwt.StandardClaims
	Username string
}

Jump to

Keyboard shortcuts

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