You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a server where we host a scaled down web client, allowing for the basic registration and listing of short links. For more advanced usage, we would like to provide an option to link either to the shared app.shlink.io instance or equivalent.
The issue right now, for the app.shlink.io site is that I can't share a link to the UI, as the configuration is in localstorage.
The solution I am thinking of is to have our UI link to the app.shlink.io site, with a POST payload, containing the following:
{
"name": "",
"url": "",
"key": ""
}
This would then automatically open the UI with the right configuration and optionally over-ride the configuration, if there is already one with the same name.
Right now I am looking at thesrc/servers/CreateServer.tsx component to see changes that could be made, but realise I need to refresh my React skills first.
The text was updated successfully, but these errors were encountered:
Exploring a bit more, since we are dealing with a purely frontend application, the POST approach would likely not work, so would need to think of another approach.
The only other approach I can think of right now feels a little convoluted right now, but would follow something like the oauth/openid approach:
Requesting service gets a temporary key, which lasts about 30 seconds (probably shorter)
GET https://app.shlink.io/server/create?server=xyz&tmpkey=2342&name=hellow
Webclient requests a longer duration key using tmpkey
Configuration stored in localstorage using the returned key
We have a server where we host a scaled down web client, allowing for the basic registration and listing of short links. For more advanced usage, we would like to provide an option to link either to the shared app.shlink.io instance or equivalent.
The issue right now, for the app.shlink.io site is that I can't share a link to the UI, as the configuration is in localstorage.
The solution I am thinking of is to have our UI link to the app.shlink.io site, with a POST payload, containing the following:
This would then automatically open the UI with the right configuration and optionally over-ride the configuration, if there is already one with the same name.
Maybe we could have the https://app.shlink.io/server/create page support parameters for this, with a 'force' option?
Right now I am looking at the
src/servers/CreateServer.tsx
component to see changes that could be made, but realise I need to refresh my React skills first.The text was updated successfully, but these errors were encountered: