api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authy

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

func (*Authy) Init

func (s *Authy) Init(cfg *Config)

func (*Authy) JwtAuther

func (s *Authy) JwtAuther(req jwt2.Request) (jwt.MapClaims, error)

func (*Authy) JwtParser

func (s *Authy) JwtParser(token string) (jwt.MapClaims, error)

func (*Authy) JwtSigner

func (s *Authy) JwtSigner(claims jwt.MapClaims) (string, error)

func (*Authy) OAuth

func (s *Authy) OAuth(req base.Request) (base.Response, error)

func (*Authy) OAuthEndpoint

func (s *Authy) OAuthEndpoint(oauthType string, endpoint string) (*base.Endpoint, error)

func (*Authy) TotpGenerate

func (s *Authy) TotpGenerate(endpoint string) (totp.GenerateBody, error)

func (*Authy) TotpValidate

func (s *Authy) TotpValidate(req totp.ValidateRequest) (bool, error)

type Config

type Config struct {
	Url string `yaml:"url"`
}

Jump to

Keyboard shortcuts

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