How to set up IFRAME

How to set up IFRAME

IFRAME LOGIN

The web application supports automatic logging into an embedded iframe by adding an access token to the iframe URL. Below is a clear, reworded explanation of how to obtain and use the token.

If you don't want automatic logging in, then just use your domain   https://yourdomain.com/

1. Requirements for automatic login

  • You need the reseller client_id (Web API Key)and client_secret (API Secret Key) to authenticate with the API.

  • If you don’t have these, contact support.

  • The email address of the user you want to log in as.

  • Authentication endpoint: https://yourdomain/api/token

2. How to request a token

Send a POST request to the authentication URL with these parameters in the request body:

POST https://yourdomain/api/token

{
  "client_id": "xxxxx",
  "client_secret": "******",
  "grant_type": "password",
  "username": "usermail@demo.com"
}

3. Example response

A successful request returns a JSON object containing the access token and expiry information, for example:

{
  "token_type": "Bearer",
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....",
  "expires_in": 7200,
  "expiration": "2023-01-25T09:26:31Z"
}
  • access_token is the value you will append to the iframe URL.

  • expires_in (seconds) / expiration indicate when the token becomes invalid.

4. Use the token in the iframe

Add the token as a query parameter to the iframe URL, for example:

http://yourdomain.com/new?access_token=xxxxxxxxxxxxxx

Embedding that URL in an <iframe> will allow the webapp to bypass the normal login flow for the user represented by the token.


Security note: Treat client credentials and access tokens as sensitive. Keep them secret

    • Related Articles

    • How do I set a Geolock alarm

      ***** This is a device/hardware specific event ****** for the case of a teltonika device , on the configurator ensure that the auto geofence parameter is set and its attributes set as shown below log in to WLT APP and Click on Create Alert fill in ...
    • How do I set Idling Threshold.

      Excessive Idling Feature The Excessive Idling feature allows fleet managers to monitor and control unnecessary engine idling. Prolonged idling wastes fuel, increases emissions, and contributes to engine wear. By setting a threshold, the system ...
    • How to set up Trip classification/categorization.

      Trip classification is the process of categorising vehicle journeys into specific purposes such as Business, Commute, Personal, or Unclassified, based on factors like time of day, day of the week, trip origin/destination, or company rules. This helps ...
    • How do I set the eco driving parameters

      This feature allows you to configure penalty weights for various unsafe driving behaviours. Instead of using fixed (hard-coded) numbers, you can adjust sliders to decide how much each behaviour affects the driver’s score. The system automatically ...
    • How do I set up bluetooth temperature sensor (coinT, puckT, Tzone)

      1 . ensure that all the io on the device are enabled. you can use SMS or 2.add the inputs to to the app 3.now on the app you can set up the temp seonser on admin>>clients>>demo client>>hdware devices>>io & sensors