Documentation
¶
Index ¶
- func AuthenticateAPIKey(username, apiKey string) bool
- func DeleteExpiredTokens()
- func Disable2FA(c *gin.Context)
- func Enable2FA(username string) bool
- func Get2FARecoveryCodes(c *gin.Context)
- func Get2FAStatus(c *gin.Context)
- func GetPhoneIslandToken(jwtToken string, onlyToken bool) (string, error)
- func GetRecoveryCodes(username string) []string
- func GetUserSecret(username string) string
- func GetUserStatus(username string) (string, error)
- func OTPVerify(c *gin.Context)
- func PhoneIslandTokenCheck(c *gin.Context)
- func PhoneIslandTokenLogin(c *gin.Context)
- func PhoneIslandTokenRemove(c *gin.Context)
- func ProxyV1Request(c *gin.Context, path string)
- func QRCode(c *gin.Context)
- func SetUserSecret(username string, secret string) (bool, string)
- func UpdateRecoveryCodes(username string, codes []string) bool
- func Verify2FA(username, otp string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateAPIKey ¶ added in v0.0.3
AuthenticateAPIKey returns true if the API key matches the stored key for the user, false otherwise
func DeleteExpiredTokens ¶ added in v0.0.3
func DeleteExpiredTokens()
func Disable2FA ¶ added in v0.0.3
func Get2FARecoveryCodes ¶ added in v0.0.3
func Get2FAStatus ¶ added in v0.0.3
func GetPhoneIslandToken ¶ added in v0.0.3
Return the PhoneIslandToken from ApiKeyData given a JWT token string
func GetRecoveryCodes ¶ added in v0.0.3
func GetUserSecret ¶ added in v0.0.3
func GetUserStatus ¶ added in v0.0.3
func PhoneIslandTokenCheck ¶ added in v0.0.3
func PhoneIslandTokenLogin ¶ added in v0.0.3
func PhoneIslandTokenRemove ¶ added in v0.0.3
func ProxyV1Request ¶
ProxyV1Request forwards requests to the legacy V1 API
func SetUserSecret ¶ added in v0.0.3
func UpdateRecoveryCodes ¶ added in v0.0.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.