Przeglądaj źródła

Use goidentity vai gopkg

Jonathan Turner 8 lat temu
rodzic
commit
a0dde5e921

+ 1 - 1
credentials/credentials_test.go

@@ -1,8 +1,8 @@
 package credentials
 
 import (
-	"github.com/jcmturner/goidentity"
 	"github.com/stretchr/testify/assert"
+	goidentity "gopkg.in/jcmturner/goidentity.v1"
 	"testing"
 )
 

+ 2 - 2
examples/example.go

@@ -28,8 +28,8 @@ If this does not suit your setup then you will need to set the IP addresses for
 You will also need to update the IPs referenced in the testdata/test_vectors.go file in the TEST_KRB5CONF constant.
 
 Before running execute the following commands (note that the KDC can take a long time to start up):
-cd $GOPATH/src/github.com/jcmturner/gokrb5/testenv/krb5kdc-vagrant && vagrant up
-cd $GOPATH/src/github.com/jcmturner/gokrb5/testenv/krbhttp-vagrant && vagrant up
+cd $GOPATH/src/gopkg.in/jcmturner/gokrb5.v2/testenv/krb5kdc-vagrant && vagrant up
+cd $GOPATH/src/gopkg.in/jcmturner/gokrb5.v2/testenv/krbhttp-vagrant && vagrant up
 */
 func main() {
 	s := httpServer()

+ 3 - 3
service/authenticator.go

@@ -4,7 +4,7 @@ import (
 	"encoding/base64"
 	"errors"
 	"fmt"
-	"github.com/jcmturner/goidentity"
+	goidentity "gopkg.in/jcmturner/goidentity.v1"
 	"gopkg.in/jcmturner/gokrb5.v1/client"
 	"gopkg.in/jcmturner/gokrb5.v1/config"
 	"gopkg.in/jcmturner/gokrb5.v1/credentials"
@@ -14,7 +14,7 @@ import (
 	"time"
 )
 
-// SPNEGOAuthenticator implements github.com/jcmturner/goidentity.Authenticator interface
+// SPNEGOAuthenticator implements gopkg.in/jcmturner/goidentity.v1.Authenticator interface
 type SPNEGOAuthenticator struct {
 	SPNEGOHeaderValue string
 	Keytab            *keytab.Keytab
@@ -64,7 +64,7 @@ func (a SPNEGOAuthenticator) Mechanism() string {
 	return "SPNEGO Kerberos"
 }
 
-// KRB5BasicAuthenticator implements github.com/jcmturner/goidentity.Authenticator interface.
+// KRB5BasicAuthenticator implements gopkg.in/jcmturner/goidentity.v1.Authenticator interface.
 // It takes username and password so can be used for basic authentication.
 type KRB5BasicAuthenticator struct {
 	BasicHeaderValue string

+ 1 - 1
service/authenticator_test.go

@@ -1,8 +1,8 @@
 package service
 
 import (
-	"github.com/jcmturner/goidentity"
 	"github.com/stretchr/testify/assert"
+	goidentity "gopkg.in/jcmturner/goidentity.v1"
 	"testing"
 )
 

+ 1 - 1
service/http.go

@@ -20,7 +20,7 @@ const (
 	spnegoNegTokenRespReject = "Negotiate oQcwBaADCgEC"
 	// CTXKeyAuthenticated is the request context key holding a boolean indicating if the request has been authenticated.
 	CTXKeyAuthenticated ctxKey = 0
-	// CTXKeyCredentials is the request context key holding the credentials jcmturner/goidentity/Identity object.
+	// CTXKeyCredentials is the request context key holding the credentials gopkg.in/jcmturner/goidentity.v1/Identity object.
 	CTXKeyCredentials ctxKey = 1
 )