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 ¶
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) ProvisionURIWithIssuer ¶
Click to show internal directories.
Click to hide internal directories.