Repository navigation
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? |
0 replies
|
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. |
1 reply
|
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. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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)
All reactions