application

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChallengeLen = 20
	TokenLen     = 32
)

Functions

This section is empty.

Types

type IdentityService

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

func NewIdentityService

func NewIdentityService(
	storage ports.ChallengeStorage,
	generator ports.Generator,
	validator ports.Validator,
) *IdentityService

func (*IdentityService) RequestChallenge

func (s *IdentityService) RequestChallenge(
	ctx context.Context,
) (string, []byte, error)

func (*IdentityService) RequestToken

func (s *IdentityService) RequestToken(
	ctx context.Context, challengeId string, pubkey, signature []byte, services []string,
) (string, error)

func (*IdentityService) SupportedServices added in v0.2.0

func (s *IdentityService) SupportedServices(context.Context) ([]string, error)

Jump to

Keyboard shortcuts

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