Direct URL for One-Click Application Installation

You can provide your users with a direct URL for deploying packaged applications and clusters automatically.

There are three kinds of such links that can be pre-generated with:

Application names that can be used for automatic deploy can be seen in JCA > Marketplace (ID value).

If using this link, a user is redirected to the Jelastic dashboard, and the deployment is started automatically right after entering account login and password. It is appropriate to use only for registered customers who already have credentials.

https://app.[{hoster_domain}](https://docs.jelastic.com/jelastic-hoster-info)/?app={app_name}

or

https://app.<a href="https://docs.jelastic.com/jelastic-hoster-info">{hoster_domain}</a>/?jps={app_name}

Here, substitute the {hoster_domain} placeholder with the domain name of your platform and {app_name} with the ID value of the required application (see the previous section).

Tip: If needed, you can provide an encoded JPS manifest of the required application directly within the URL (instead of the {app_name} placeholder).

Such a link logs in a user into the dashboard without the need to provide credentials and automatically starts the required application installation. It is an option for mailing campaigns to already registered customers.

To generate such a direct URL, you should prepare a script for performing the following algorithm:

  1. Using your JCA admin credentials create the link based on the following sample:
https://reg.<a href="https://docs.jelastic.com/jelastic-hoster-info">{hoster_domain}</a>/Signin?login={jca_admin}&password={password}
Note: You need to provide the credentials of the JCA admin user.
  1. Follow the link you’ve just created to get your session (same-named parameter from the opened JSON file):
session: "{session}"
  1. Create one more link using the email of a target user ({user_email}), ID or encoded JPS of the required application ({app_name}), and admin user session ({session}):
https://reg.<a href="https://docs.jelastic.com/jelastic-hoster-info">{hoster_domain}</a>/GenerateAuthLink?email={user_email}&action=deploysolution&solution={app_name}&session={session}
  1. Open the link and check the JSON response for the link value.
link: "{URL}"

It is the link that will automatically log in a user and initiate application installation.

Jelastic PaaS provides a special link for application installation that can target even customers not yet registered on the platform. After executing the URL, a confirmation email will be sent to the user. If confirmed, the user is automatically registered (if not yet) and logged into the dashboard with the required application installation form automatically started.

Herewith, you need to dynamically provide the email address of the target user (e.g. create your own form/widget, where a customer specifies required address).

Tip: As an alternative option, you can use the Jelastic-developed applications installation widgets at your site.
https://reg.{<a href="https://docs.jelastic.com/jelastic-hoster-info">hoster_domain</a>}/installapp?email={user_email}&id={app_id}

The following parameters are supported for this link:

  • email={user_email} - email address of the target user
  • id={app_id} - ID or encoded JPS of the required application
  • manifest={manifest} (this parameter can be used instead of the id one) - link to the application manifest file
  • &iref={internal_referrer} - indicates the page where the app package widget is placed (optional)
  • &eref={external_referrer} - defines the initial source from which a user came to the page with the app package widget (optional)

The values of the last two parameters will be displayed in Jelastic DB and can be used for tracking.

What’s next?