add HTTP plugin

This commit is contained in:
ginuerzh
2023-09-20 22:56:43 +08:00
parent afddd2d29e
commit 1760151500
29 changed files with 1032 additions and 147 deletions

View File

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