authentiate

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOtpCodeCurrect

func IsOtpCodeCurrect(username string, otpcode string) bool

func NewOtpUser

func NewOtpUser(username string, issuerName string) (secret string, qrcode string)

Types

type Auth_Provider

type Auth_Provider interface {
	IsUserAuthenticated(username string, password string) (authstat bool, groups []string)
}

type LdapProvider

type LdapProvider struct {
	LdapConfig ldapAuth.Config
	Groups     []string
}

func (LdapProvider) IsUserAuthenticated

func (l LdapProvider) IsUserAuthenticated(username string, password string) (authStat bool, groups []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL