mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
13 lines
419 B
Go
13 lines
419 B
Go
|
package totp
|
||
|
|
||
|
import (
|
||
|
"github.com/authelia/authelia/v4/internal/models"
|
||
|
)
|
||
|
|
||
|
// Provider for TOTP functionality.
|
||
|
type Provider interface {
|
||
|
Generate(username string) (config *models.TOTPConfiguration, err error)
|
||
|
GenerateCustom(username, algorithm string, digits, period, secretSize uint) (config *models.TOTPConfiguration, err error)
|
||
|
Validate(token string, config *models.TOTPConfiguration) (valid bool, err error)
|
||
|
}
|