Documentation
¶
Index ¶
- func AllowSensitivePasswordCheck(ip, account string) (bool, time.Duration)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func OAuth(c *gin.Context)
- func OAuthCallback(c *gin.Context)
- func RecordSensitivePasswordFailure(ip, account string)
- func ResetSensitivePasswordFailures(account string)
- func ServePluginFile(c *gin.Context)
- type LoginRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowSensitivePasswordCheck ¶ added in v0.1.14
Step-up password checks share the login buckets.
The 2FA re-enrollment endpoint asks the same question as login ("is this the account password?") for the same account, so it must spend the same budget: a stolen session must not turn re-enrollment into an unlimited password oracle that the login limiter cannot see.
func RecordSensitivePasswordFailure ¶ added in v0.1.14
func RecordSensitivePasswordFailure(ip, account string)
RecordSensitivePasswordFailure consumes one token from both step-up buckets.
func ResetSensitivePasswordFailures ¶ added in v0.1.14
func ResetSensitivePasswordFailures(account string)
ResetSensitivePasswordFailures clears the account bucket after a correct password, exactly as a successful login does.
func ServePluginFile ¶
ServePluginFile serves a public iframe page declared in a plugin manifest (visibility=public). It is reachable without authentication; the plugin must be enabled and the requested file must be listed as a public page.