provider

package
v0.0.0-...-5167e8f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package provider contains authentication methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBaseProvider

func NewBaseProvider(
	p security.UserProvider,
	passwordEncoder password.Encoder,
	deprecatedPasswordEncoders ...password.Encoder,
) security.Provider

NewBaseProvider creates new provider.

func NewLdapProvider

func NewLdapProvider(
	config security.LdapConfig,
	userProvider security.UserProvider,
	roleProvider security.RoleProvider,
	ldapDialer LdapDialer,
	enforcer security.Enforcer,
) security.Provider

NewLdapProvider creates new provider.

Types

type LdapDialer

type LdapDialer interface {
	DialURL(config security.LdapConfig) (ldap.Client, error)
}

LdapDialer interface is used to implement creation of LDAP connection.

func NewLdapDialer

func NewLdapDialer() LdapDialer

NewLdapDialer creates new dialer.

Jump to

Keyboard shortcuts

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