maddy/internal/config/module/auth.go
fox.cpp eaaadfa6df
Implement & integrate generic SASL authentication support
This should make it possible to implement OAuth and TLS client
certificates authentication.
2020-02-27 21:40:04 +03:00

14 lines
355 B
Go

package modconfig
import (
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/internal/module"
)
func SASLAuthDirective(m *config.Map, node *config.Node) (interface{}, error) {
var provider module.SASLProvider
if err := ModuleFromNode(node.Args, node, m.Globals, &provider); err != nil {
return nil, err
}
return provider, nil
}