mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 08:16:59 -06:00
12 lines
389 B
Go
12 lines
389 B
Go
package authenticator
|
|
|
|
import (
|
|
"k8s.io/apiserver/pkg/authentication/authenticator"
|
|
"k8s.io/apiserver/pkg/authentication/request/union"
|
|
)
|
|
|
|
func NewAuthenticator(authRequestHandlers ...authenticator.Request) authenticator.Request {
|
|
handlers := append([]authenticator.Request{authenticator.RequestFunc(signedInUserAuthenticator)}, authRequestHandlers...)
|
|
return union.New(handlers...)
|
|
}
|