upd(system): print oidc config on startup
This commit is contained in:
@@ -2,20 +2,22 @@ package rest
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/titpetric/factory/resputil"
|
||||
"golang.org/x/oauth2"
|
||||
|
||||
"github.com/crusttech/crust/internal/auth"
|
||||
"github.com/crusttech/crust/internal/config"
|
||||
"github.com/crusttech/crust/system/repository"
|
||||
"github.com/crusttech/crust/system/service"
|
||||
"github.com/crusttech/crust/system/types"
|
||||
"github.com/crusttech/go-oidc"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/titpetric/factory/resputil"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
const DB_SETTINGS_KEY_OIDC_CLIENT = "oidc-client"
|
||||
@@ -59,6 +61,8 @@ func OpenIdConnect(ctx context.Context, cfg *config.OIDC, usvc service.UserServi
|
||||
jwt: jwt,
|
||||
}
|
||||
|
||||
fmt.Printf("%#v\n", *cfg)
|
||||
|
||||
// Allow 5 seconds for issuer discovery process
|
||||
c.provider, err = oidc.NewProvider(ctx, cfg.Issuer)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user