This guide will help you understand how to display Axle’s Ignition session to your users.
Open Ignition in new window
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.Open iframe
ignitionUri
within an iframe modal.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
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
status=complete
by sending the authCode
to your application’s protected
services to be exchanged for an accessToken
.Open webview
ignitionUri
within the natively supported
ASWebAuthentication
session (full
documentation).ignitionUri
within Chrome 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
status=complete
by sending the authCode
to your application’s protected
services to be exchanged for an accessToken
.