add client ID for plugin service

This commit is contained in:
ginuerzh
2023-09-19 22:31:37 +08:00
parent 95da26cf49
commit 674a70cd23
26 changed files with 306 additions and 320 deletions

View File

@ -30,10 +30,10 @@ type autherWrapper struct {
r *autherRegistry
}
func (w *autherWrapper) Authenticate(ctx context.Context, user, password string) bool {
func (w *autherWrapper) Authenticate(ctx context.Context, user, password string) (bool, string) {
v := w.r.get(w.name)
if v == nil {
return true
return true, ""
}
return v.Authenticate(ctx, user, password)
}