|
@@ -7,7 +7,7 @@ import (
|
|
|
"strings"
|
|
"strings"
|
|
|
"time"
|
|
"time"
|
|
|
|
|
|
|
|
- goidentity "gopkg.in/jcmturner/goidentity.v1"
|
|
|
|
|
|
|
+ goidentity "gopkg.in/jcmturner/goidentity.v2"
|
|
|
"gopkg.in/jcmturner/gokrb5.v5/client"
|
|
"gopkg.in/jcmturner/gokrb5.v5/client"
|
|
|
"gopkg.in/jcmturner/gokrb5.v5/config"
|
|
"gopkg.in/jcmturner/gokrb5.v5/config"
|
|
|
"gopkg.in/jcmturner/gokrb5.v5/credentials"
|
|
"gopkg.in/jcmturner/gokrb5.v5/credentials"
|
|
@@ -15,7 +15,7 @@ import (
|
|
|
"gopkg.in/jcmturner/gokrb5.v5/keytab"
|
|
"gopkg.in/jcmturner/gokrb5.v5/keytab"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-// SPNEGOAuthenticator implements gopkg.in/jcmturner/goidentity.v1.Authenticator interface
|
|
|
|
|
|
|
+// SPNEGOAuthenticator implements gopkg.in/jcmturner/goidentity.v2.Authenticator interface
|
|
|
type SPNEGOAuthenticator struct {
|
|
type SPNEGOAuthenticator struct {
|
|
|
SPNEGOHeaderValue string
|
|
SPNEGOHeaderValue string
|
|
|
Keytab *keytab.Keytab
|
|
Keytab *keytab.Keytab
|
|
@@ -66,7 +66,7 @@ func (a SPNEGOAuthenticator) Mechanism() string {
|
|
|
return "SPNEGO Kerberos"
|
|
return "SPNEGO Kerberos"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// KRB5BasicAuthenticator implements gopkg.in/jcmturner/goidentity.v1.Authenticator interface.
|
|
|
|
|
|
|
+// KRB5BasicAuthenticator implements gopkg.in/jcmturner/goidentity.v2.Authenticator interface.
|
|
|
// It takes username and password so can be used for basic authentication.
|
|
// It takes username and password so can be used for basic authentication.
|
|
|
type KRB5BasicAuthenticator struct {
|
|
type KRB5BasicAuthenticator struct {
|
|
|
BasicHeaderValue string
|
|
BasicHeaderValue string
|