Documentation ¶
Index ¶
- type Auth
- func (s *Auth) GetCode(secret string) (string, error)
- func (s *Auth) GetQrcode(url string) (string, error)
- func (s *Auth) GetSecret(ctx context.Context) string
- func (s *Auth) ProvisionURI(user string, secret string) string
- func (s *Auth) ProvisionURIWithIssuer(user string, secret string, issuer string) string
- func (s *Auth) VerifyCode(secret, code string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶ added in v0.3.6
type Auth struct { UTC bool // use UTC for the timestamp instead of local time OTPIssuer string Logger glog.ILogger }
Auth is a one-time-password configuration. This object will be modified by calls to Authenticate and should be saved to ensure the codes are in fact only used once. GoogleAuthenticator
func (*Auth) ProvisionURI ¶ added in v0.3.6
func (*Auth) ProvisionURIWithIssuer ¶ added in v0.3.6
Click to show internal directories.
Click to hide internal directories.