mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
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:
19
console/authentication/root.go
Normal file
19
console/authentication/root.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user