Home | History | Annotate | Download | only in smtp

Lines Matching full:auth

21 	auth       Auth
36 name, resp, err := test.auth.Start(&ServerInfo{"testserver", true, nil})
49 resp, err := test.auth.Next(challenge, true)
63 auth := PlainAuth("foo", "bar", "baz", "servername")
74 server: &ServerInfo{Name: "servername", Auth: []string{"PLAIN"}},
77 server: &ServerInfo{Name: "servername", Auth: []string{"CRAM-MD5"}},
86 _, _, err := auth.Start(tt.server)
97 // Issue 17794: don't send a trailing space on AUTH command when there's no password.
116 c.Auth(toServerEmptyAuth{})
118 if got, want := wrote.String(), "AUTH FOOAUTH\r\n*\r\nQUIT\r\n"; got != want {
123 // toServerEmptyAuth is an implementation of Auth that only implements
169 if ok, args := c.Extension("aUtH"); !ok || args != "LOGIN PLAIN" {
170 t.Fatalf("Expected AUTH supported")
190 if err := c.Auth(PlainAuth("", "user", "pass", "smtp.google.com")); err != nil {
191 t.Fatalf("AUTH failed: %s", err)
233 250-AUTH LOGIN PLAIN
252 AUTH PLAIN AHVzZXIAcGFzcw==
284 if ok, args := c.Extension("aUtH"); !ok || args != "LOGIN PLAIN" {
285 t.Fatalf("Expected AUTH supported")
303 250-AUTH LOGIN PLAIN
343 250-AUTH LOGIN PLAIN
387 err = c.Auth(PlainAuth("", "user", "pass", "smtp.google.com"))
449 "AUTH PLAIN AHVzZXIAcGFzcw==\n",
565 err = c.Auth(PlainAuth("", "user", "pass", "smtp.google.com"))
568 t.Error("Auth: expected error; got none")
570 t.Errorf("Auth: got error: %v, want: %s", err, "535 Invalid credentials\nplease see www.example.com")
582 250 AUTH LOGIN PLAIN
589 AUTH PLAIN AHVzZXIAcGFzcw==
746 auth := PlainAuth("", "", "", host)
749 return SendMail(hostPort, auth, from, to, []byte("Subject: test\n\nhowdy!"))