[💡 Guide] Use external Nextcloud with Cloudron OpenID Connect Provider
-
You have an external Nextcloud e.g. a Hetzner Nextcloud Share and want to use Cloudron Users with OpenID.
First we create an OpenID Client in Cloudron:
Go to https://my.DOMAIN.tld/#/usersettings and create an OpenID Client.
AsNamefor example we takeCloudronNCOIDand the secret is a generated password.
TheLogin callback Url (comma separated if more than one)for Nextcloud Social Login is something like this:
https://nc.DOMAIN.tld/apps/sociallogin/custom_oidc/my.DOMAIN.tldSo the main domain is the Nextcloud Domain and the part after the
custom_oidcis the Internal Name that we set in the Social Login within Nextcloud, which we will configure later.Signing Algorithm can stay RS256.
NOTE: All Cloudron OpenID URLs can be found here: https://my.DOMAIN.tld/.well-known/openid-configuration
On the Nextcloud install and enable the Social Login app.
Go Into the Admin Settings to
Social-Loginand add a custom OpenID-Connect.There you need to fill out the needed information:
- Internal Name
my.DOMAIN.tld(See the first step of Cloudron which you took there)
- Title
- choose for yourself
- Authorize url
- Token url
- Display name claim (optional)
empty
- User info URL (optional)
- Logout URL (optional)
empty
- Client Id
- This you need to set yourself in cloudron, for example we use
CloudronNCOID
- This you need to set yourself in cloudron, for example we use
- Client Secret
- defined in Cloudron
- Scope
- openid
- Groups claim (optional)
empty
- Button style
empty
- Default group
- choose yourself
Save and it should work.
- Internal Name
-
Thanks!

Presumably you'll add or link to this in the docs too @BrutalBirdie ?
-
Yea link at least.
But where would you expect this doc? For the Nextcloud app? This does not fit 100% since it's not about the Cloudron Nextcloud app.Maybe to https://docs.cloudron.io/user-management/#openid-connect ?
-
Yea link at least.
But where would you expect this doc? For the Nextcloud app? This does not fit 100% since it's not about the Cloudron Nextcloud app.Maybe to https://docs.cloudron.io/user-management/#openid-connect ?
@BrutalBirdie said in (howto) Use external Nextcloud with Cloudron OpenID Connect Provider:
But where would you expect this doc?
Perhaps in a section about OIDC?
-
IMO, it's better to make these how to's SEO friendly with proper description and content. From what we have seen, the docs are not read as a manual like in the good old days.
People search -> hit forum post is the most common flow. The forum is waaaaaaaay more popular in SEO than the docs.
-
B BrutalBirdie referenced this topic on
-
Those settings migrated to 'User directory', for anyone wondering how to setup OpenID on Cloudron for external use.
And yeah - I've been searching in the docs first.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login