auth

package
v0.0.0-...-d8ef1d0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(cache cache.Service, oauth *oauth2.Config, client *http.Client, jwksURI string) *service

authRepo athena.AuthRepository

Types

type Service

type Service interface {
	InitializeAttempt(ctx context.Context) (*athena.AuthAttempt, error)
	AuthAttempt(ctx context.Context, hash string) (*athena.AuthAttempt, error)
	UpdateAuthAttempt(ctx context.Context, hash string, attempt *athena.AuthAttempt) (*athena.AuthAttempt, error)

	ValidateToken(ctx context.Context, member *athena.Member) (*athena.Member, error)
	AuthorizationURI(ctx context.Context, state string, scopes []string) string
	BearerForCode(ctx context.Context, code string) (*oauth2.Token, error)
	ParseAndVerifyToken(ctx context.Context, t string) (jwt.Token, error)
}

Jump to

Keyboard shortcuts

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