I’d like to know how I could create a plugin inside Nextcloud that allows connecting (via login) to a client’s server, for example. The idea is to enter a username and password, send those credentials to a REST API, authenticate the user, and then gain access to files and documents from that external server.
Does anyone know how I can get started or if there’s already a similar solution available?
In the NC ecosystem, such plugins are called apps (or ExApps).
Just to get the use case straight: Should the REST API be the NC server of should the plugin access a foreign REST server? (I suppose the latter but still wanted to clarify this)
By what means? I mean, NC offers you the option to login (also via REST if you like) and access the files stored within NC. External storage is present, in general, as well.
So, could you please elaborate a bit more in detail?
I would like to login and connect with a external server, i mean, i send the user and password, the api rest of server process this and return the authentication. After those steps, i can log in the app seeing the files and documents that is storage in this external server.
Did you understand? I can explain it to you another way if you want.
What protocol is the external server using/speaking? Is it some standard protocol like S3?
Adding a completely custom storage under your NC instance is quite a burden. You have to maintain stuff and keep it running. Thus, I asked you, why you want to do this.
Many questions would be easier to answer if people were less secretive about their environment, products and goals.
What kind of server are we talking about? What software is it running? Is it custom-built or a pre-made product/appliance? If the latter, which product?
What exactly is the goal: just being able to see the files in Nextcloud, or actually using them within Nextcloud?