2022-03-29 23:58:41 +00:00
|
|
|
// Copyright 2020-2022 the Pinniped contributors. All Rights Reserved.
|
2020-09-16 14:19:51 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2020-07-27 23:49:43 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
2021-08-14 00:19:32 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/pkg/browser"
|
|
|
|
|
|
|
|
"go.pinniped.dev/cmd/pinniped/cmd"
|
2022-03-29 23:58:41 +00:00
|
|
|
// this side effect import ensures that we use fipsonly crypto in fips_strict mode.
|
|
|
|
_ "go.pinniped.dev/internal/crypto/ptls"
|
2021-08-14 00:19:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
//nolint: gochecknoinits
|
|
|
|
func init() {
|
|
|
|
// browsers like chrome like to write to our std out which breaks our JSON ExecCredential output
|
|
|
|
// thus we redirect the browser's std out to our std err
|
|
|
|
browser.Stdout = os.Stderr
|
|
|
|
}
|
2020-07-27 23:49:43 +00:00
|
|
|
|
|
|
|
func main() {
|
2020-09-12 00:56:05 +00:00
|
|
|
cmd.Execute()
|
2020-07-27 23:49:43 +00:00
|
|
|
}
|