auth: add Validate() and deprecate Validator{} (#272)

This commit is contained in:
Alessandro Ros
2023-05-07 19:34:20 +02:00
committed by GitHub
parent 2170ef4b00
commit 7c67221494
11 changed files with 280 additions and 106 deletions

View File

@@ -58,7 +58,7 @@ func TestValidatorErrors(t *testing.T) {
t.Run(ca.name, func(t *testing.T) {
va := NewValidator("myuser", "mypass", nil)
va.nonce = "abcde"
err := va.ValidateRequest(&base.Request{
err := va.Validate(&base.Request{
Method: base.Describe,
URL: nil,
Header: base.Header{