mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-08 04:03:53 +02:00
92b3172a3e
- Leave a failing test to make hate not love.
25 lines
586 B
Go
25 lines
586 B
Go
package authboss
|
|
|
|
import (
|
|
"io"
|
|
"io/ioutil"
|
|
)
|
|
|
|
// Config holds all the configuration for both authboss and it's modules.
|
|
type Config struct {
|
|
MountPath string `json:"mountPath" xml:"mountPath"`
|
|
|
|
AuthLoginPageURI string `json:"authLoginPage" xml:"authLoginPage"`
|
|
AuthLogoutRedirect string `json:"authLogoutRedirect" xml:"authLogoutRedirect"`
|
|
|
|
Storer Storer `json:"-" xml:"-"`
|
|
LogWriter io.Writer `json:"-" xml:"-"`
|
|
}
|
|
|
|
// NewConfig creates a new config full of default values ready to override.
|
|
func NewConfig() *Config {
|
|
return &Config{
|
|
LogWriter: ioutil.Discard,
|
|
}
|
|
}
|