Open quenenni opened 1 year ago
I tried to find where the DAV auth via bearer token is defined in the user_oidc app.
Can it be this part?
$context->registerEventListener(
'OCA\DAV\Connector\Sabre::authInit',
'\OCA\OIDCLogin\WebDAV\BearerAuthBackend'
);
In oidc_login plugin (this one), I don't find anything related to a BearerAuthBackend.
I have the option 'checkBearer' set to 1
[EDIT] I tried to import that part from the other app into this one, made some adjustments to have the right namespace and removed all references to configs to put hard values.. just to try to understand what's missing.
The files I copied from the other app to this one:
And in AppInfo/Application.php, I added the "$context->registerEventListener" as mentioned above.
The best I had was this: "Cannot declare class OCA\OIDCLogin\WebDAV\BearerAuthBackend, because the name is already in use at /var/www/nextcloud-test/apps/user_oidc/lib/WebDAV/BearerAuthBackend.php#19"
But I have no clue why as it's declared the same way the other app did. I guess it must be the way you register the classes in your app.
I feel I'm over my head unfortunately. I hope this will trigger your curiosity.
I'm sorry to come back so quickly, but can you tell me if this is something you would integrate in the plugin in a near future?
I'm desesperately trying to update our sso nextcloud setup since july 22 but everything we tried reached a dead end.
And since a couple month now, all our users receive a warning about our server not being secure (amazing) when connecting to the cloud, but we are stuck in that version (v22).
I really need to find a working solution soon, I already spent so many days trying to figure a way to bypass the sso problems we met.
Hello,
Our working SSO setup (LemonLdap / Nextcloud / Roundcube ) is using the plugin rcmcarddav (https://github.com/mstilkerich/rcmcarddav) in Roundcube to synchronise the cloud user addressbook within roundcube, using the bearer token.
But this working setup is using the Nextcloud plugin "Nextlcoud Oidc login" (https://github.com/pulsejet/nextcloud-oidc-login).
We decided to use this plugin User_oidc in our Nextcloud setup. Now with the group management, everything's working well except for one thing, the connection from roundcube to synchronise the user addressbook.
The error I have in Nextcloud log:
I was able to debug the content of the request and response objects from the sabre/Dav app:
I went back to some old ticket and found this comment (https://github.com/mstilkerich/rcmcarddav/issues/361#issuecomment-953183587):
So I'm wondering if this app is able to auth via DAV or is it indeed not possible?
PS: the app "External user authentication" is active in our cloud.