Skip to content

Commit

Permalink
all: format files with goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed Oct 25, 2017
1 parent 2d0fb95 commit 9d24ee6
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
5 changes: 3 additions & 2 deletions handler/oauth2/strategy_hmacsha_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"testing"
"time"

"fmt"

"github.com/ory/fosite"
"github.com/ory/fosite/token/hmac"
"github.com/stretchr/testify/assert"
"fmt"
)

var hmacshaStrategy = HMACSHAStrategy{
Expand Down Expand Up @@ -67,7 +68,7 @@ func TestHMACAccessToken(t *testing.T) {
assert.Equal(t, signature, validate)
} else {
assert.Error(t, err)
}
}
})
}
}
Expand Down
3 changes: 2 additions & 1 deletion handler/oauth2/strategy_jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"testing"
"time"

"fmt"

"github.com/ory/fosite"
"github.com/ory/fosite/internal"
"github.com/ory/fosite/token/jwt"
"github.com/stretchr/testify/assert"
"fmt"
)

var j = &RS256JWTStrategy{
Expand Down
3 changes: 2 additions & 1 deletion integration/authorize_code_grant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (

"net/http"

"fmt"

"github.com/ory/fosite"
"github.com/ory/fosite/compose"
"github.com/ory/fosite/handler/oauth2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
goauth "golang.org/x/oauth2"
"fmt"
)

func TestAuthorizeCodeFlow(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion integration/authorize_implicit_grant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import (
"testing"
"time"

"fmt"

"github.com/ory/fosite"
"github.com/ory/fosite/compose"
"github.com/ory/fosite/handler/oauth2"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
goauth "golang.org/x/oauth2"
"fmt"
)

func TestAuthorizeImplicitFlow(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion integration/introspect_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import (

"encoding/json"

"fmt"

"github.com/ory/fosite"
"github.com/ory/fosite/compose"
"github.com/ory/fosite/handler/oauth2"
"github.com/parnurzeal/gorequest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
goauth "golang.org/x/oauth2"
"fmt"
)

func TestIntrospectToken(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion integration/oidc_implicit_hybrid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/oauth2"

"fmt"

"github.com/ory/fosite/compose"
"github.com/ory/fosite/handler/openid"
"github.com/ory/fosite/internal"
"github.com/ory/fosite/token/jwt"
"fmt"
)

func TestOIDCImplicitFlow(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion scope_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package fosite
import (
"testing"

"github.com/stretchr/testify/assert"
"strings"

"github.com/stretchr/testify/assert"
)

func TestHierarchicScopeStrategy(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions token/hmac/hmacsha.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"encoding/base64"
"fmt"
"strings"
"github.com/ory/fosite"
"github.com/pkg/errors"
"sync"

"github.com/gtank/cryptopasta"
"github.com/ory/fosite"
"github.com/pkg/errors"
)

// HMACStrategy is responsible for generating and validating challenges.
Expand Down

0 comments on commit 9d24ee6

Please sign in to comment.