Replies: 3 comments 2 replies
-
“User enters a Host Domain” Also Maybe api.aspirecloud.org should be default value to make it easy for end users? |
Beta Was this translation helpful? Give feedback.
-
That would make someone (in the plugins case us) a curator of mirrors, which is not something we have discussed yet. Making it a dropdown will be user friendly though. |
Beta Was this translation helpful? Give feedback.
-
How about having a dropdown with Aspirepress and Other as options for phase 1. Selecting Other will show a text box to manually enter any host. |
Beta Was this translation helpful? Give feedback.
-
Currently we have the API key as a separate fields and it needs to be repeated for each host so that there can be an API key for each host.
I am thinking about using the API Key end point for dual purposes
a) To Get an API Key
b) To Make sure we are dealing with an actual mirror
We can also rename the API endpoint to something else like Handshake or hello to make more sense in this role if required.
This is the proposed workflow
User enters a Host Domain
The Plugin tries to ping the API Key domain.
3a) The plugin receives an API Key (blank key is also fine if the host doesnt want to use an API key). We go to Step 5
3b) The plugin is unable to find the API Key endpoint.
We show an error message to the user and refuse to save the new host
If the host is approved or a failed host is removed we save the host.
System uses one of the added hosts randomly to ping (This can actually be finalized later if we want to prioritize or lock particular installations to a particular host etc)
Beta Was this translation helpful? Give feedback.
All reactions