verify

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sessionServer SessionServer, signer Signer) *verifier

Types

type AuthBackend

type AuthBackend interface {
	Verify(auth.Attempt) ([]string, error)
}

type Session

type Session interface {
	// A request for username/password
	ChallengeLogin() *pb.UserAction

	// A request for the user to acknowledge the credentials being minted
	ChallengeReview(*pb.VerifiedUser) *pb.UserAction

	// The final screen showing something nice to the user prompting to close
	// the window. Sets the attached cookie if set.
	ChallengeComplete(*pb.BrowserCookie) *pb.UserAction

	Destroy()
}

type SessionServer

type SessionServer interface {
	NewSession(*pb.UserCredentialRequest, chan auth.Attempt, chan error) Session
}

type Signer

type Signer interface {
	Sign(*pb.UserCredentialRequest, *pb.VerifiedUser) (*pb.CredentialResponse, error)
}

Jump to

Keyboard shortcuts

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