How to integrate a Nextcloud server with Unikname Connect?

Despite there’s no official documentation about the integration of the famous Nexcloud solution, here some tips to guide you through a manual integration.

:pen: How to integrate Nexcloud with Unikname Connect?

1. Choose and install an official OpenID Connect plugin of Nextcloud from the plugin repository

We know that successful configurations have been done with this plugin:

You can also browse all OpenID Connect plugins for Nextcloud if you want to try another plugin.

Please, let us know if you succeed with another!

2. Configure the plugin with the generic OpenID Connect information for Unikname Connect

Please, follow this official guide:

:rotating_light: :warning: Don’t forget to check the pre-requisites!

3. Special instructions for URL verification

Allow an URL_Checker to verify your domain

For this, you need to edit the following file (we assume you’ve followed the standard Nextcloud installation process on Apache): /var/www/nextcloud/.htaccess

Edit and comment 2 lines:

They should look like that:

#    RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
#    RewriteRule ^(?:\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]

Save and you can then launch the URL verification process.

Which URL verification method to choose between “html tag” and “file upload”?

You must choose the “file upload” verification method, as there isn’t any known way to modify the current template of Nextcloud to add the meta hml tag in all Nextcloud pages.

:rotating_light: :warning: :rotating_light: :warning: :rotating_light: :warning: :rotating_light: :warning: :rotating_light:
After a successful URL verification, you must revert the above configuration.
Especially if you’re using TLS certificates generated by Let’s Encrypt, certificate renewals won’t work anymore!
So don’t forget to uncomment the previously commented lines.

That’s it! :clap:

:interrobang: How to get help?

If you have questions or need help to do this integration, just ask below :arrow_down: :grin: