go fmt
This commit is contained in:
parent
190ee93da8
commit
336941f584
|
@ -10,9 +10,9 @@ import (
|
|||
"os"
|
||||
"strconv"
|
||||
|
||||
"git.coolaj86.com/coolaj86/go-mockid/mockid"
|
||||
"git.coolaj86.com/coolaj86/go-mockid/mockid"
|
||||
|
||||
_ "github.com/joho/godotenv/autoload"
|
||||
_ "github.com/joho/godotenv/autoload"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -58,7 +58,7 @@ func main() {
|
|||
host = "http://localhost:" + strconv.Itoa(port)
|
||||
}
|
||||
|
||||
var jwksPrefix string
|
||||
var jwksPrefix string
|
||||
if nil != prefixFlag && "" != *prefixFlag {
|
||||
jwksPrefix = *prefixFlag
|
||||
} else {
|
||||
|
@ -70,7 +70,7 @@ var jwksPrefix string
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
mockid.Route(jwksPrefix, priv, jwk)
|
||||
mockid.Route(jwksPrefix, priv, jwk)
|
||||
|
||||
fs := http.FileServer(http.Dir("public"))
|
||||
http.Handle("/", fs)
|
||||
|
|
|
@ -39,7 +39,7 @@ func init() {
|
|||
nonces = make(map[string]int64)
|
||||
}
|
||||
|
||||
func Route(jwksPrefix string , priv *ecdsa.PrivateKey, jwk *PrivateJWK) {
|
||||
func Route(jwksPrefix string, priv *ecdsa.PrivateKey, jwk *PrivateJWK) {
|
||||
pub := &priv.PublicKey
|
||||
thumbprint := thumbprintKey(pub)
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package mockid
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
//keypairs "github.com/big-squid/go-keypairs"
|
||||
//"github.com/big-squid/go-keypairs/keyfetch/uncached"
|
||||
"testing"
|
||||
"time"
|
||||
//keypairs "github.com/big-squid/go-keypairs"
|
||||
//"github.com/big-squid/go-keypairs/keyfetch/uncached"
|
||||
)
|
||||
|
||||
func TestTest(t *testing.T) {
|
||||
t.Fatal("no test")
|
||||
t.Fatal("no test")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue