Skip to content

Commit

Permalink
Merge pull request #1716 from owncloud/add-missing-gatewaysvc-config
Browse files Browse the repository at this point in the history
add missing gatewaysvc config
  • Loading branch information
butonic authored Feb 25, 2021
2 parents a7b2f4d + 059bec1 commit 00659b6
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/add-missing-gatewaysvc-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Add missing gateway config

The auth provider `ldap` and `oidc` drivers now need to be able talk to the reva gateway. We added the `gatewayscv` to the config that is passed to reva.

https://github.com/owncloud/ocis/pull/1716
1 change: 1 addition & 0 deletions storage/pkg/command/authbasic.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func AuthBasic(cfg *config.Config) *cli.Command {
"bind_username": cfg.Reva.LDAP.BindDN,
"bind_password": cfg.Reva.LDAP.BindPassword,
"idp": cfg.Reva.LDAP.IDP,
"gatewaysvc": cfg.Reva.Gateway.Endpoint,
"schema": map[string]interface{}{
"dn": "dn",
"uid": cfg.Reva.LDAP.UserSchema.UID,
Expand Down
11 changes: 6 additions & 5 deletions storage/pkg/command/authbearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ func AuthBearer(cfg *config.Config) *cli.Command {
"auth_manager": "oidc",
"auth_managers": map[string]interface{}{
"oidc": map[string]interface{}{
"issuer": cfg.Reva.OIDC.Issuer,
"insecure": cfg.Reva.OIDC.Insecure,
"id_claim": cfg.Reva.OIDC.IDClaim,
"uid_claim": cfg.Reva.OIDC.UIDClaim,
"gid_claim": cfg.Reva.OIDC.GIDClaim,
"issuer": cfg.Reva.OIDC.Issuer,
"insecure": cfg.Reva.OIDC.Insecure,
"id_claim": cfg.Reva.OIDC.IDClaim,
"uid_claim": cfg.Reva.OIDC.UIDClaim,
"gid_claim": cfg.Reva.OIDC.GIDClaim,
"gatewaysvc": cfg.Reva.Gateway.Endpoint,
},
},
},
Expand Down
10 changes: 10 additions & 0 deletions storage/pkg/flagset/authbasic.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ func AuthBasicWithConfig(cfg *config.Config) []cli.Flag {
Usage: "--service authprovider [--service otherservice]",
EnvVars: []string{"STORAGE_AUTH_BASIC_SERVICES"},
},

// Gateway

&cli.StringFlag{
Name: "gateway-url",
Value: "localhost:9142",
Usage: "URL to use for the storage gateway service",
EnvVars: []string{"STORAGE_GATEWAY_ENDPOINT"},
Destination: &cfg.Reva.Gateway.Endpoint,
},
}

flags = append(flags, TracingWithConfig(cfg)...)
Expand Down
10 changes: 10 additions & 0 deletions storage/pkg/flagset/authbearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ func AuthBearerWithConfig(cfg *config.Config) []cli.Flag {
Usage: "--service authprovider [--service otherservice]",
EnvVars: []string{"STORAGE_AUTH_BEARER_SERVICES"},
},

// Gateway

&cli.StringFlag{
Name: "gateway-url",
Value: "localhost:9142",
Usage: "URL to use for the storage gateway service",
EnvVars: []string{"STORAGE_GATEWAY_ENDPOINT"},
Destination: &cfg.Reva.Gateway.Endpoint,
},
}

flags = append(flags, TracingWithConfig(cfg)...)
Expand Down

0 comments on commit 00659b6

Please sign in to comment.