File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,10 @@ This is a complete working example for Basic auth:
2424 package main
2525
2626 import (
27- "github.com/abbot/go-http-auth"
2827 "fmt"
2928 "net/http"
29+
30+ auth "github.com/abbot/go-http-auth"
3031 )
3132
3233 func Secret(user, realm string) string {
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ import (
66 "sync"
77)
88
9- /*
9+ /*
1010 SecretProvider is used by authenticators. Takes user name and realm
1111 as an argument, returns secret required for authentication (HA1 for
1212 digest authentication, properly encrypted password for basic).
13-
13+
1414 Returning an empty string means failing the authentication.
1515*/
1616type SecretProvider func (user , realm string ) string
You can’t perform that action at this time.
0 commit comments