HomeByMe for Home Retailers Documentation

›Developer's Guide

Product Enhancements

  • Release Notes

Use the Home Planner

  • Overview
  • Get Started
  • From a HomeByMe Project
  • From a 2D Plan
  • From the Scratch
  • Add Products
  • Configure Products
  • Create Favorites
  • Finalize My Project
  • Access My Project
  • Recover My Project

Configuration Guide

  • Overview
  • Application Distribution Parameters
  • Sample of Application Distribution Parameters
  • Localizing Application and Content
  • Integrate Branding
  • Default Project
  • Default widgets
  • Print widget
  • Product Sheet widget
  • Project Overview widget
  • Projects List widget

Developer's Guide

  • Authentication Mechanism
  • Signing your Request
  • Integrate the Home Planner to your Website
  • Integrate with Ordering System
  • Bill of Material Reference
  • Home Planner iFrame Messages

Authentication Mechanism

 

➡️ See POST tokens/ in the API documentation 🔗.

➡️ See also Authenticate your Web Services Request 🔗.

Every call to ByMe API web services needs to be authenticated. There are three ways of being authenticated:

  • With an API Key / Secret Key. API Keys should only be used in backend system, otherwise the keys would be exposed to the end-user.

  • With a Legal entity token. The web service caller is identified as a specific Legal Entity. By default, access rights are very restricted (GET methods). This authentication method should be used when no user is logged in.

  • With a User token. A web service caller is identified as a specific user, associated to a Legal Entity. Access rights are restricted to GET methods and modifications of current user assets.

Note: By default, tokens are generated with read access rights only but you can change this in the web service parameters.

Legal entity and User tokens are JSON web tokens (or JWT) 🔗. JWT do not need to be stored in database, their strings contain everything needed, which reduce the access to the database and the space use.

Token Authentication

Figure 1 – Token Authentication process

Legal Entity Workflow

No user is logged in.

  1. Front-end asks to its back-end for a Legal Entity token.

  2. The API Key and Secret Key that are associated to the Legal Entity are stored in back-end system to sign the request asking for the generation of a Legal Entity token (see API documentation POST tokens/)

  3. Front-end sends the Legal Entity token to the planner via the "Authentication" iFrame message.

  4. The planner uses this token to sign web services request as long as the token is valid.

  5. As soon as the token expiration date is reached, the planner asks for token refresh on the next web service call via a "TokenExpired" iFrame message. Call to Web services will be on hold until it gets back a new token.

➡️ For default timeout period, see POST tokens/ in the API documentation 🔗).


User Token Workflow

The user is logged in.

  1. Front-end tasks to its back-end for a user token.

  2. The API Key and Secret Key associated to the Legal Entity are stored in the back-end system to sign the request asking for the generation of a user token.

  3. Front-end sends the user token to the planner via the "Login" iFrame message.

  4. The planner uses this token to sign web services request as long as the token is valid.

  5. As soon as the token expiration date is reached, the planner asks for a token refresh on the next web service call via "TokenExpired" iFrame message. Call to Web services will be on hold until it gets back a new token.

➡️ For default timeout period, see POST tokens/ in the API documentation 🔗).  

 

← Projects List widgetSigning your Request →
  •  
    • Legal Entity Workflow
    • User Token Workflow
3DVIA Documentation
Copyright © 2021 Dassault Systèmes