Use new docker login

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl
2022-07-13 12:07:31 -03:00
parent e0c0b2704c
commit a5a23bf2d9
3 changed files with 19 additions and 19 deletions

View File

@@ -33,9 +33,11 @@ import (
"google.golang.org/api/people/v1"
)
var core pwd.PWDApi
var e event.EventApi
var landings = map[string][]byte{}
var (
core pwd.PWDApi
e event.EventApi
landings = map[string][]byte{}
)
//go:embed www/*
var embeddedFiles embed.FS
@@ -53,7 +55,6 @@ type HandlerExtender func(h *mux.Router)
func init() {
prometheus.MustRegister(latencyHistogramVec)
staticFiles, _ = fs.Sub(embeddedFiles, "www")
}
func Bootstrap(c pwd.PWDApi, ev event.EventApi) {
@@ -278,8 +279,8 @@ func initOauthProviders(p *types.Playground) {
ClientSecret: p.DockerClientSecret,
Scopes: []string{"openid"},
Endpoint: oauth2.Endpoint{
AuthURL: fmt.Sprintf("https://%s/id/oauth/authorize/", endpoint),
TokenURL: fmt.Sprintf("https://%s/id/oauth/token", endpoint),
AuthURL: fmt.Sprintf("https://%s/authorize/", endpoint),
TokenURL: fmt.Sprintf("https://%s/oauth/token", endpoint),
},
}