Skip to content

Commit

Permalink
Make tokeninfo endpoint unprotected
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Sep 29, 2022
1 parent 3b95dcc commit 37809a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/tokeninfo-endpoint-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Make tokeninfo endpoint unprotected

Make tokeninfo endpoint unprotected.

https://github.com/owncloud/ocis/pull/4715
6 changes: 6 additions & 0 deletions services/proxy/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ func DefaultPolicies() []config.Policy {
Backend: "http://localhost:9140",
Unprotected: true,
},
{
Type: config.RegexRoute,
Endpoint: "/ocs/v[12].php/apps/files_sharing/api/v1/tokeninfo/unprotected",
Backend: "http://localhost:9140",
Unprotected: true,
},
{
Endpoint: "/ocs/",
Backend: "http://localhost:9140",
Expand Down

0 comments on commit 37809a9

Please sign in to comment.