To connect Ametys to a Nextcloud server, you need to create OAuth keys in Nextcloud. To do this, you need an account that can access the server's administration parameter and generate one key pair per application Ametys.
To do this, you need to fill in
An application name that will be visible to the user when they link their Nextcloud account to Ametys. (The image on the right shows an example of a connection with an application registered as "Ametys" in Nextcloud).
Une URL de redirection sous la forme <ApplicationURL>/_extra-user-management/oauth-callback.
We recommend that you use the same application name to register all Ametys applications, to avoid confusing the user with different names that could suggest phishing, for example.
For example, in a standard configuration with a back-office application and a site application, the following two keys must be created:
Nom : "Mon application"; URL de redirection : <bo-server-url>/_extra-user-management/oauth-callback,
Nom : "Mon application"; URL de redirection : <site-server-url>/_extra-user-management/oauth-callback.
Où <bo-server-url> est par exemple https://cms.mon-application.com
Network configuration
The back office must be able to communicate directly with the nextcloud server via http(s). The same applies to the website.
Installation ofAmetys
To be able to use Nextcloud, you need to add the following two lines to your application's Ivy dependencies:
Oops!
Copy to clipboard failed. Open the code and copy it manually.