I started to develop a Nextcloud integration into elementary OS 1. The goal is to add Nextcloud as “Online Account” provider to the system settings 2 to enable a elementary OS integrated Contact, Task and Calendar and maybe even File Sync. In order to do so, I’d love to use the OAuth authentication flow, as it is also implemented in the Nextcloud Desktop Client.
As it seems the Nextcloud Desktop Client uses static OAuth Client ID and Secret to be able to connect to every Nextcloud instance, is there a way to request such a “well-known” OAuth Client ID and Secret for elementary OS? Or should I simply use the Nextcloud Desktop Client’s ID and Secret?