Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

User provisioning route #80

Merged
merged 2 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/user-provisioning-api.md
Original file line number Diff line number Diff line change
@@ -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
21 changes: 14 additions & 7 deletions config/proxy-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"insecure": true
},
"policy_selector": {
"static": {"policy" : "reva"}
"static": {
"policy": "reva"
}
},
"policies": [
{
Expand All @@ -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"
Expand All @@ -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"
}
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down