Skip to content

Commit

Permalink
goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jun 8, 2016
1 parent bb90f0e commit fd540c4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 0 additions & 3 deletions cmd/clients_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ var clientsCreateCmd = &cobra.Command{
Short: "Create a new OAuth2 client",
Long: `This command creates a basic OAuth2 client. Always specify at least one redirect url.
Use the $FORCE_CLIENT_SECRET environment variable to force set a client secret.
Example:
hydra clients create -n "my app" -c=[http://localhost/cb] -g [authorization_code] -r [code] -a [core,foobar]
FORCE_CLIENT_SECRET=somesupersecretPassword hydra create -n "my app" -c=[http://localhost/cb]
`,
Run: cmdHandler.Clients.CreateClient,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/clients_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
var clientsImportCmd = &cobra.Command{
Use: "import <path/to/file.json> [<path/to/other/file.json>...]",
Short: "Import clients from JSON files",
Run: cmdHandler.Clients.ImportClients,
Run: cmdHandler.Clients.ImportClients,
}

func init() {
Expand Down
11 changes: 6 additions & 5 deletions cmd/host.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package cmd

import (
"net/http"
"crypto/tls"
"net/http"

"bytes"
"encoding/gob"

"github.com/Sirupsen/logrus"
"github.com/go-errors/errors"
Expand All @@ -12,8 +15,6 @@ import (
"github.com/ory-am/hydra/pkg"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"bytes"
"encoding/gob"
"github.com/square/go-jose"
)

Expand Down Expand Up @@ -43,7 +44,7 @@ This command supports the following environment variables:
- HYDRA_PROFILING: Set "HYDRA_PROFILING=1" to enable profiling.
`,
Run: runHostCmd,
Run: runHostCmd,
}

func init() {
Expand Down Expand Up @@ -163,7 +164,7 @@ func getOrCreateTLSCertificate(cmd *cobra.Command) tls.Certificate {

err = ctx.KeyManager.AddKey(TLSKeyName, &jose.JsonWebKey{
KeyID: "certificate",
Key: network.Bytes(),
Key: network.Bytes(),
})
pkg.Must(err, "Could not persist certificate: %s", err)
} else if err == nil {
Expand Down
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"time"

"crypto/sha256"

"github.com/Sirupsen/logrus"
"github.com/go-errors/errors"
"github.com/ory-am/fosite/handler/core/strategy"
Expand Down
2 changes: 1 addition & 1 deletion jwk/generator_rs256.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/square/go-jose"
)

type RS256Generator struct{
type RS256Generator struct {
KeyLength int
}

Expand Down

0 comments on commit fd540c4

Please sign in to comment.