admin:online-platform-cms:cms-placeholders

CMS placeholders

CMS placeholders enable the addition of dynamic data to CMS pages, categorized into two types: public and private.

  • Public placeholders are visible to all website visitors.
  • Private placeholders are accessible only to users with accounts who are logged in.

'.User.OTT' is a special placeholder containing a one-time token for external user validation, it enhances security through its unique and temporary nature. The token can be validated externally using the '/third-party/user/verify' endpoint, detailed at https://petstore.swagger.io/?url=https://static.advbet.com/web-backend-api/thirdParty.yaml#/User/post_third_party_user_verify.

Usage Example

  • The client embeds an iframe on a CMS page:
    <iframe src="<url>?token={{.User.OTT}}"></iframe>

    .

  • On the client's side, OTT validation occurs using the '/third-party/user/verify' endpoint.
  • Upon successful validation, the client receives a response with userID and websiteID. User-specific information can be displayed.
  • In case of validation failure, clients can handle the 'Unauthorized' error by displaying an error message.
  • admin/online-platform-cms/cms-placeholders.txt
  • Last modified: 2023/12/18 13:20
  • by edvinas-bazevicius