Embedding the Anon Migration Modal
The Anon migration modal provides a user interface for your end users to initiate data migrations directly from your website. To securely isolate Anon’s modal from your application, Anon usesiframe embedding for UI integration and a simple RESTful API.
This page gives an overview of how your website can integrate with this modal experience.
Overview
The embedding process involves two main steps:- Obtain a dynamic signed URL from Anon
- Create an iframe that loads this signed URL
Why use an iframe?
Anon uses iframes for several important reasons:- Security: The iframe creates a secure sandbox that isolates Anon’s code from your website, preventing any potential cross-site scripting (XSS) attacks or unauthorized access to your platform’s data.
- Data Protection: Sensitive migration data and credentials are handled within the iframe’s isolated context, ensuring they never directly interact with your website’s JavaScript environment.
- Clean Integration: The iframe approach allows Anon to deliver a consistent migration UI to your users while seamlessly integrating it into your website’s design.
- Independent Updates: Anon can update the migration interface without requiring changes to your website’s code, ensuring you always have access to the latest features and security improvements.
Anon’s 3rd party login UX employs standard practices across the industry-leading enterprise products, from banking login forms to Google Sign-in.
When to Initiate the Anon Migration Modal
There are two common scenarios where you can initiate the migration modal:- When a user is onboarding onto your platform
- When a user has requested to connect platform data from another provider
Your end user should have clear intent of migrating data before launching the modal.
Integration Flow
The diagram below illustrates the high-level flow of the embed modal integration:Getting a Signed URL
To generate a signed URL, make a POST request to Anon’s API:Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Your internal user identifier (uniquely ids a user within your system) |