mirror of
https://github.com/volatiletech/authboss.git
synced 2025-09-16 09:06:20 +02:00
Fix imports
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/response"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/response"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -10,8 +10,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
func testSetup() (a *Auth, s *mocks.MockStorer) {
|
||||
|
@@ -4,7 +4,7 @@ remove as much boilerplate and "hard things" as possible so that each time you
|
||||
start a new web project in Go, you can plug it in, configure and be off to the
|
||||
races without having to think about how to store passwords or remember tokens.
|
||||
*/
|
||||
package authboss // import "gopkg.in/authboss.v0"
|
||||
package authboss // import "gopkg.in/authboss.v1"
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
12
circle.yml
12
circle.yml
@@ -4,21 +4,21 @@ machine:
|
||||
checkout:
|
||||
post:
|
||||
- mkdir -p /home/ubuntu/.go_project/src/gopkg.in
|
||||
- ln -s /home/ubuntu/authboss /home/ubuntu/.go_project/src/gopkg.in/authboss.v0
|
||||
- ln -s /home/ubuntu/authboss /home/ubuntu/.go_project/src/gopkg.in/authboss.v1
|
||||
dependencies:
|
||||
override:
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go get -t -d -v ./...
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 && go build -v
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 && go get -t -d -v ./...
|
||||
- cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 && go build -v
|
||||
test:
|
||||
pre:
|
||||
- go get github.com/jstemmer/go-junit-report
|
||||
- go get github.com/mattn/goveralls
|
||||
override:
|
||||
- >
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 &&
|
||||
go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
|
||||
- >
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 &&
|
||||
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
|
||||
for i in $(go list ./...); do
|
||||
rm -f coverage.tmp;
|
||||
@@ -29,6 +29,6 @@ test:
|
||||
- cat $CIRCLE_ARTIFACTS/gotest.txt | /home/ubuntu/.go_project/bin/go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
|
||||
- >
|
||||
if [ -n "$COVERALLS_TOKEN" ]; then
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v0 &&
|
||||
cd /home/ubuntu/.go_project/src/gopkg.in/authboss.v1 &&
|
||||
/home/ubuntu/.go_project/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN;
|
||||
fi
|
||||
|
@@ -11,8 +11,8 @@ import (
|
||||
"net/url"
|
||||
"path"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/response"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/response"
|
||||
)
|
||||
|
||||
// Storer and FormValue constants
|
||||
|
@@ -12,8 +12,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
func setup() *Confirm {
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v1"
|
||||
)
|
||||
|
||||
// MockUser represents all possible fields a authboss User may have
|
||||
|
@@ -15,7 +15,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v1"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@@ -9,8 +9,8 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
var testViewTemplate = template.Must(template.New("").Parse(`{{.external}} {{.fun}} {{.flash_success}} {{.flash_error}} {{.xsrfName}} {{.xsrfToken}}`))
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v1"
|
||||
)
|
||||
|
||||
// Storage key constants
|
||||
|
@@ -4,8 +4,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
func TestStorage(t *testing.T) {
|
||||
|
@@ -13,8 +13,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/response"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/response"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@@ -14,8 +14,8 @@ import (
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/oauth2/facebook"
|
||||
"golang.org/x/oauth2/google"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
var testProviders = map[string]authboss.OAuth2Provider{
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v1"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v1"
|
||||
)
|
||||
|
||||
func TestGoogle(t *testing.T) {
|
||||
|
@@ -13,8 +13,8 @@ import (
|
||||
"time"
|
||||
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/response"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/response"
|
||||
)
|
||||
|
||||
// Storage constants
|
||||
|
@@ -12,8 +12,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/response"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/response"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -9,8 +9,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
func setup() *Register {
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v1"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -5,8 +5,8 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/authboss.v0"
|
||||
"gopkg.in/authboss.v0/internal/mocks"
|
||||
"gopkg.in/authboss.v1"
|
||||
"gopkg.in/authboss.v1/internal/mocks"
|
||||
)
|
||||
|
||||
func TestInitialize(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user