Skip to content

Commit

Permalink
Fix resources-stringslice parsing after urfavecli to v2 upgrade (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
p53 authored Dec 8, 2023
1 parent fcd0e84 commit 46c342c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ var _ = Describe("NoRedirects Simple login/logout", func() {
"--client-secret=" + testClientSecret,
"--upstream-url=" + server.URL,
"--no-redirects=true",
"--enable-default-deny=false",
"--skip-access-token-clientid-check=true",
"--skip-access-token-issuer-check=true",
"--openid-provider-retry-count=30",
Expand Down Expand Up @@ -177,6 +178,8 @@ var _ = Describe("Code Flow login/logout", func() {
"--skip-access-token-clientid-check=true",
"--skip-access-token-issuer-check=true",
"--enable-idp-session-check=false",
"--enable-default-deny=false",
"--resources=uri=/*|roles=uma_authorization,user",
"--openid-provider-retry-count=30",
"--enable-refresh-tokens=true",
"--encryption-key=sdkljfalisujeoir",
Expand Down
2 changes: 2 additions & 0 deletions pkg/proxy/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import (
func NewOauthProxyApp() *cli.App {
cfg := config.ProduceConfig(proxycore.Provider)
app := cli.NewApp()
// we had to set this after upgrade from urvafe v1 to v2
app.DisableSliceFlagSeparator = true
app.Name = constant.Prog
app.Usage = constant.Description
app.Version = proxycore.GetVersion()
Expand Down

0 comments on commit 46c342c

Please sign in to comment.