fix ks-apiserver missing interfaces

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-08-12 03:39:37 +00:00
parent 2fcfb81066
commit 3bfae73318
7 changed files with 42 additions and 32 deletions

View File

@@ -23,6 +23,7 @@ import (
iamv1alpha2 "kubesphere.io/api/iam/v1alpha2"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/request/basictoken"
"kubesphere.io/kubesphere/pkg/apiserver/request"
"kubesphere.io/kubesphere/pkg/models/auth"
@@ -40,7 +41,7 @@ type basicAuthenticator struct {
loginRecorder auth.LoginRecorder
}
func NewBasicAuthenticator(authenticator auth.PasswordAuthenticator, loginRecorder auth.LoginRecorder) authenticator.Password {
func NewBasicAuthenticator(authenticator auth.PasswordAuthenticator, loginRecorder auth.LoginRecorder) basictoken.Password {
return &basicAuthenticator{
authenticator: authenticator,
loginRecorder: loginRecorder,