Hi all - I am interested in setting up a few small community sites with discourse plus nextcloud for document and media content sharing. It would be loverly and preferable to have SSO with discourse as SSO provider. If anyone has succeeded in doing this and can share a recipe here on how to do it I’d appreciate it. Thanks!
The communities I am looking at creating are for my own geographically dispersed family, my neighborhood, and my son’s school.
I might also be interested in setting up a nextcloud for the organization I work for that already has an active community website. Though my organization’s community uses discourse, it uses wordpress as SSO auth now. Down the pike I’m also interested in flipping that around so we can benefit from features reliant on discourse as SSO auth.
Edit: this seems to be the page - I will be exploring this today and will let others know what I come up with if anything. Any guidance along the way much appreciated.
IMHO that’s the best way to implement it, since the id is used primarily internal and not visible in many places to normal users.
Nextcloud has no easy way to rename users, but Discourse has. Renaming a user in Discourse could lead to some strange behavior with Nextcloud if the names don’t match any more.
You should use device passwords instead. The Nextcloud password could be different from the Discourse password, which would lead to confusion and skips the SSO.
I think these are general issues with the Nextcloud UI and not app specific.
Set the social_login_auto_redirect option to true as described in the config section if you want hide the Nextcloud login completely.
用户名、头像和简介同步的紧急程度较低,不过看到它正常工作会很好。我不知道为什么不能在每次登录时更新用户的这些详细信息。也许 Nextcloud 有一些特性与 Discourse 在这种情况下不兼容。例如,Discourse 只允许一个用户对应一个电子邮件地址,而我似乎能够创建第二个具有相同电子邮件地址的 Nextcloud 用户,除非我使用 Prevent creating an account if the email address exists in another account 管理员设置来阻止它。理想情况下,它应该根据电子邮件地址自动连接这些账户。