Implementation Through An Iframe
Initial Steps
To enable the integrator client to execute the entire gateway process directly from their corporate domain, MobbID Gateway can be seamlessly integrated using an <iframe>
. This requires only the inclusion of an HTML <iframe>
tag within their web page.
Example Code
<iframe allow="camera; microphone" src="{{ gatewayUrl }}"></iframe>
Key Details
src
Attribute- The
src
attribute in the<iframe>
tag must contain thegatewayUrl
, which is obtained by the integrator client’s server.
- The
allow
Attribute- The
allow
attribute must include the permissions forcamera
and/ormicrophone
. These permissions are essential for requesting user consent to access the device's camera and/or microphone.
Example:
allow="camera; microphone"
- The
Result
With this configuration, end users can initiate the gateway process directly within their browser, ensuring a secure and smooth integration experience.