Files
akvorado/console/authentication/root.go
Vincent Bernat f5252ce077 console: rework a bit user management
Notably, HTTP headers are configurable and a provider is used for the
frontend side.
2022-05-31 17:03:00 +02:00

20 lines
397 B
Go

package authentication
import "akvorado/common/reporter"
// Component represents the authentication compomenent.
type Component struct {
r *reporter.Reporter
config Configuration
}
// New creates a new authentication component.
func New(r *reporter.Reporter, configuration Configuration) (*Component, error) {
c := Component{
r: r,
config: configuration,
}
return &c, nil
}