diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 57c094a..bd504bc 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -17,7 +17,8 @@ func NewAuth(sessionStore *sessions.Store) { oidcId := os.Getenv("OIDC_ID") oidcSec := os.Getenv("OIDC_SECRET") oidcDiscUrl := os.Getenv("OIDC_DISC_URL") - oidcRedirectUrl := "http://localhost:3003/auth/openid-connect/callback" + domain := os.Getenv("OIDC_REDIR_DOMAIN") + oidcRedirectUrl := domain + "/auth/openid-connect/callback" openidConnect, err := openidConnect.New(oidcId, oidcSec, oidcRedirectUrl, oidcDiscUrl) if openidConnect == nil || err != nil {