[INFO] How to login to Web Presence Builder Standalone or Web Presence Builder for cPanel using a token?

Refers to:

  • Plesk Sitebuilder 4.5 for Linux
  • Web Presence Builder 11.0 for Linux
  • Web Presence Builder 12.0 for Linux
  • Web Presence Builder 11.5 for Linux

Created:

2016-11-16 12:45:22 UTC

Modified:

2016-12-21 19:08:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[INFO] How to login to Web Presence Builder Standalone or Web Presence Builder for cPanel using a token?

Resolution

  1. Get credentials for login to sitebuilder5 database from /usr/local/sb/config , section [database]

  2. Get uuid of the site from " site " table

    mysql> select uuid from site where site_publish_settings_id = (select id from site_publish_settings where url like '%<domain_name>%');
    +--------------------------------------+
    | uuid |
    +--------------------------------------+
    | ce4dd42f-4e51-0a3c-6cb4-a268ac8755b2 |
    +--------------------------------------+
    1 row in set (0.01 sec)
  3. Install HttpRequester add-on for Firefox

  4. Get Web Presence Builder Password. If there is no password known you can backup hash:

     mysql> select * from config_param where name like 'password%';
    +----+-------------------+--------------+----------------------------------+-----------+
    | id | config_section_id | name | value | in_backup |
    +----+-------------------+--------------+----------------------------------+-----------+
    | 19 | 1 | passwordSalt | 4e3b85ad88fa0ed8f6487538489836e6 | 0 |
    | 20 | 1 | passwordHash | 2b91546848b3754151350313bf636db0 | 0 |
    +----+-------------------+--------------+----------------------------------+-----------+

then set new password:

    sb_config --sb_passwd <new_password_here>
  1. Check Web Presence Builder connectivity using HttpRequester (two arrows in the upper right corner):

    1. URL: https://%servername%/api/5.3/system/version
    2. Auth: admin <Web Presence Builder Password>
    3. press GET button

    response example:

    {"response":"12.0.5"}

    Note that if the server is using self-signed certificate, when connecting the first time HttpRequester will not be able to connect (no response will be returned). In this case openhttps://%servername%/api/5.3/system/version in your browser first.

  2. Generate one-time access token using HttpRequester

    1. URL: https://%servername%/api/5.3/sites/<site UUID from step 1>/token
    2. Auth: admin <Web Presence Builder Password>
    3. Content to Send: [{"localeCode":"en_US","sessionLifeTime":1800}]
    3. press POST button

    response example:

    {"response":"b6a09c08f880f229c091de03b91bdbc3"}
  3. Use the following URL to access the Web Presence Builder Editor GUI from your browser

    https://%servername%/Start?token=%token%
Have more questions? Submit a request
Please sign in to leave a comment.