Support

Multipass

To use the Multipass functionality in your Jumpseller store, you need to have one of two options active in the Customers section: Optional or Mandatory.

Ative o uso de clients na sua loja


1. Multipass Jumpseller makes an easy connection between your applications

“Multipass - Involving, employing, or related to repeated passages through or over something; operating repeatedly in successive passes.” in oxford dictionary - lexico

The Multipass authentication strategy available with your Jumpseller store allows you to connect customers of your applications with your Jumpseller store, through an easy-to-use system.

Using the secret key that Jumpseller provides in your administration area, you can encrypt customer data in other applications and allow them a simple connection without additional authentication steps that interfere with the good quality of user experience.

Multipass at Jumpseller also allows you the same functionality between two Jumpseller stores in a convenient and native way, as long as you identify which secret key to use.


2. Using Multipass between 2 Jumpseller stores

Copy the secret key from the second store, which you want to connect to the first store.

Copie a sua secret key

Apply this secret key in the first store, in the Customers area, in the Multipass form.

Aplique a chave secreta

From there you can use Multipass in your store's theme code editor, using the multipass_token variable.

{% if multipass_token != blank %}
  <a href="https://yourstore/customer/multipass/{{ multipass_token }}">Link</a>
{% endif %}

The multipass_token variable is only functional for logged-in users.


3. Using Multipass between an application/website outside Jumpseller and the Jumpseller store

Search for the secret key in your Jumpseller store administration area. Go to administration> settings> notifications and copy the hooks token that is available.

Copie a sua secret key

The hooks token will be used as a secret key for encrypting the data for Multipass login.


require base64

key = OpenSSL::Digest.new('sha256').digest(secret_key)

# add your customer's email and optionally add the product page where to redirect your customer after authentication
payload = { email: <customer email>, redirect: http://<your store>/<your product> }

cipher = OpenSSL::Cipher.new('aes-256-cbc')
cipher.encrypt
cipher.key = key

cipher.iv = iv = cipher.random_iv

# encrypt the data
ciphertext = iv + cipher.update(payload) + cipher.final

# encode the token to be used in the URL
Base64.urlsafe_encode64(ciphertext)

Once the final token is obtained, add it to the link http://storename/customer/multipass/token.

Redirect your user to the link created.

If the user's email is already registered as a customer of your store he will be authenticated without additional steps. If you are not already registered, then a new account will be created.

After authentication, the user will be redirected to the homepage of their Jumpseller store or, if they have filled in the redirect field in the data to be encrypted, to the specified product page.

If you need more help, write to our support