Merge pull request #80 from owncloud/user-provisioning-route

User provisioning route
This commit is contained in:
Benedikt Kulmann
2020-07-28 20:57:21 +02:00
committed by GitHub
3 changed files with 20 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
Change: Add route for user provisioning API in ocis-ocs
We added a route to send requests on the user provisioning API endpoints to ocis-ocs.
https://github.com/owncloud/ocis-proxy/pull/80

View File

@@ -7,7 +7,9 @@
"insecure": true
},
"policy_selector": {
"static": {"policy" : "reva"}
"static": {
"policy": "reva"
}
},
"policies": [
{
@@ -33,6 +35,11 @@
"endpoint": "/ocs/",
"backend": "http://localhost:9140"
},
{
"type": "regex",
"endpoint": "/ocs/v[12].php/cloud/user",
"backend": "http://localhost:9110"
},
{
"endpoint": "/remote.php/",
"backend": "http://localhost:9140"
@@ -58,13 +65,13 @@
"backend": "http://localhost:9140"
},
{
"endpoint": "/api/v0/accounts",
"backend": "http://localhost:9181"
},
{
"endpoint": "/api/v0/accounts",
"backend": "http://localhost:9181"
},
{
"endpoint": "/accounts.js",
"backend": "http://localhost:9181"
}
"backend": "http://localhost:9181"
}
]
},
{

View File

@@ -255,7 +255,7 @@ func defaultPolicies() []config.Policy {
},
{
Type: config.RegexRoute,
Endpoint: "/ocs/v[12].php/cloud/user/signing-key",
Endpoint: "/ocs/v[12].php/cloud/user",// we have `user` and `users` in ocis-ocs
Backend: "http://localhost:9110",
},
{