Initialize
This guide will help you understand how to display Axle’s Ignition session to your users.
Once you have generated an Ignition token, you can guide the user to complete Axle’s Ignition session for the user to share their insurance information.
Using a clear call to action alongside a description of why you are requesting a user’s insurance information will increase the open rate of Ignition. It is also recommended to include a link to Axle’s consumers page in case your users have additional questions. Reach out to the Axle team for any guidance on how to design the best experience. We would love to help!
Open Ignition in new window
Open Ignition in new window
Add link to the the constructed ignitionUri
using an anchor tag or
other mechanism.
Process Ignition completion
authCode
by either handling the parameters after Ignition redirects back to your application using the specified redirectUri
or processing the ignition.completed
webhook event.This method is best used for asynchronous user interactions such as via email, SMS, push notification, etc. that do not require immediate user action after insurance verification.
Web: Display Ignition in iframe
Open iframe
Initialize the constructed ignitionUri
within an iframe modal.
If you would like to receive MessageEvent
messages to your main application Window from Ignition, you must specify an origin
as a URL parameter when initalizing Ignition. The origin should not include any path, just the base domain as a URI.
Example: https://ignition.axle.insure/?origin=http://example.com
Axle recommends setting up an iframe in your application’s client that is full viewport width and height, as Ignition is optimized for responsiveness across all viewports.
For the best experience, you can set the background color and opacity (allowing a peek at your application’s views or components) of Ignition. Contact the Axle team to enable this configuration!
Listen for MessageEvent
window.addEventListener
to listen for Window MessageEvent
. For added security, verify the origin of the message is the Axle Ignition base domain (e.g., https://ignition.axle.insure
)Process Ignition event
Process each Ignition event in your application’s client. For example, when a user completes Ignition, process the event with status=complete
by sending the authCode
to your application’s protected
services to be exchanged for an accessToken
.
Mobile: Display Ignition in native view
Open webview
- On iOS, open the constructed
ignitionUri
within the natively supportedASWebAuthentication
session (full documentation). - On Android, open the constructed
ignitionUri
withinChrome Custom Tabs
(full documentation) to create an in-app session and Android App Links (full documentation) to deep-link back into your application.
Process Ignition event
Process each Ignition event that is returned to your application’s client.
For example, when a user completes Ignition, process the event with
status=complete
by sending the authCode
to your application’s protected
services to be exchanged for an accessToken
.
Congrats!
At this stage the user will now be able to securely connect their insurance account via Axle 🎉.