While trying to setup caldav access using oidc access token, I got the following error :
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<s:message>File not found: oidc-user-6f712d44b31bd9c8ec824314ea951590 in 'principals'</s:message>
</d:error>
After some debugging I found that the principals parameter in EventHandler.php is set to /principals when the default in OpenIdSabreAuthBackend.php is /principals/users/. This wrong path causes the sabre backend to fail to retrieve user's principal and other resources, even when the right url is given. (See below)
Hi,
While trying to setup caldav access using oidc access token, I got the following error :
After some debugging I found that the principals parameter in EventHandler.php is set to
/principals
when the default in OpenIdSabreAuthBackend.php is/principals/users/
. This wrong path causes the sabre backend to fail to retrieve user's principal and other resources, even when the right url is given. (See below)Here is the generated debug log :
Updating
/principals
to/principals/users/
in EventHandler.php fixes the issue and allows proper caldav access using OIDC access tokens.