justification

package
v0.0.1-test5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JVSAgent

type JVSAgent struct {
	jvspb.JVSServiceServer

	Processor *Processor
}

JVSAgent is the implementation of the justification verification server.

func NewJVSAgent

func NewJVSAgent(p *Processor) *JVSAgent

NewJVSAgent creates a new JVSAgent.

type Processor

type Processor struct {
	jvspb.UnimplementedJVSServiceServer
	// contains filtered or unexported fields
}

Processor performs the necessary logic to validate a justification, then mints a token.

func NewProcessor

NewProcessor creates a processor with the signer cache initialized.

func (*Processor) CreateToken

func (p *Processor) CreateToken(ctx context.Context, request *jvspb.CreateJustificationRequest) (string, error)

CreateToken implements the create token API which creates and signs a JWT token if the provided justifications are valid.

Jump to

Keyboard shortcuts

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