Nextcloud is an open-source storage, collaboration, and communication platform. You can let users sign in to your Rocket.Chat workspace with their Nextcloud credentials. This keeps control of data within your environment while adding secure authentication.
Prerequisites
Before setting up Nextcloud OAuth, you need:
Administrator access to your Nextcloud server.
An OAuth-enabled app created in Nextcloud, with the Callback URL from Rocket.Chat added.
The app’s Client ID and Client Secret (from your Nextcloud app settings).
Ability to log in as an admin on your Nextcloud server.
Configure Nextcloud OAuth
Once you have your Nextcloud app credentials, configure Nextcloud OAuth in Rocket.Chat:
In your Rocket.Chat workspace, go to Administration > Workspace > Settings > OAuth and expand the Nextcloud section.
Toggle OAuth Enabled to on.
Enter the following values:
Nextcloud Server URL: The URL of your Nextcloud instance.
Nextcloud Id: Paste the Client ID from your Nextcloud app.
Client Secret: Paste the Client Secret from your Nextcloud app.
Nextcloud Callback URL: Copy this from Rocket.Chat and add it to your Nextcloud app.
Customize the sign-in button (optional):
Button Text: Set the label displayed on the login button.
Button Text Color: Set the text color (ensure accessibility contrast).
Button Color: Set the background color (ensure accessibility contrast).
Click Save changes.
Accessibility Note
Changing button colors may result in non-compliance with WCAG (Web Content Accessibility Guidelines) requirements. Make sure your chosen colors meet recommended contrast and readability standards to ensure accessibility for all users.
After saving, a Sign in with Nextcloud button will appear on your workspace login page. Users can now log in with their Nextcloud accounts.