console: rework a bit user management

Notably, HTTP headers are configurable and a provider is used for the
frontend side.
This commit is contained in:
Vincent Bernat
2022-05-31 17:03:00 +02:00
parent 494fd25c86
commit f5252ce077
97 changed files with 468 additions and 295 deletions

View File

@@ -0,0 +1,19 @@
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
}