Nextcloud
This guide explains how to set up single sign-on (SSO) between SmartLink and Nextcloud using the Social Login plugin with OpenID Connect.
Prerequisites
- Nextcloud version 20 or higher
- Administrative access to Nextcloud
- Application configured in SmartLink with OpenID Connect
- Social Login plugin installed on Nextcloud
Installing the Social Login plugin
Via the Nextcloud interface
- Log in to Nextcloud as an administrator
- Go to Settings → Apps
- Search for "Social Login" in the Integration category
- Click on Download and enable
Via the command line
cd /var/www/nextcloud
sudo -u www-data php occ app:install sociallogin
sudo -u www-data php occ app:enable sociallogin
Configuration in SmartLink
1. Create the application
- Log in to SmartLink as an administrator
- Go to Applications → Add
- Search for "Nextcloud" or create a custom application
- Configure the basic information:
- Name: Nextcloud
- URL:
https://your-nextcloud.example.com - Icon: Choose the Nextcloud icon
2. Configure OpenID Connect
- In the Authentication tab of the application
- Select OpenID Connect as the authentication type
- Note the following information:
- Client ID:
nextcloud-xxxxxx - Client Secret:
secret-xxxxxx - Issuer URL:
https://your-smartlink.link.vaultys.org/api/oidc/[appid] - App ID:
[appid](unique application identifier in SmartLink)
- Client ID:
3. Configure redirection URLs
In the Allowed Redirect URLs section, add:
https://your-nextcloud.example.com/apps/sociallogin/custom_oidc/smartlink
Note: The
[appid]will be automatically generated when creating the application in SmartLink.
4. Configure scopes
Make sure the following scopes are enabled:
openidprofileemailgroups(optional, for group synchronization)