Embedded login for web applications uses cross-origin authentication unless you configure a custom domain for your tenant. Cross-origin authentication uses third-party cookies to allow for secure authentication transactions across different origins.
Using Auth0’s SDKs to implement Embedded Login
You can implement Login using Auth0’s Lock widget, or if you need complete control of the user experience, you can implement it using Auth0.js:Configure Cross-Origin Resource Sharing (CORS)
For security purposes, your app’s origin URL must be listed as an approved URL. If you have not already added it to the Allowed Callback URLS for your application, you will need to add it to the list of Allowed Origins (CORS).- Navigate to Auth0 Dashboard > Applications > Applications, and select the name of your application to see its settings.
- Locate Allowed Origins (CORS), enter your application’s origin URL, and select Save Changes.
Customize MFA
Customizable MFA with the Resource Owner Password Grant, Embedded, or Refresh Token flows is in Early Access. To learn more, read Product Release Stages. To participate in the early access, contact Auth0 Support.
oauth/token
endpoint returns the mfa_required
error and includes the mfa_token
you need to use the MFA API and mfa_requirements
parameter with a list of authenticators your application currently supports:
mfa_token
to call the mfa/authenticator
endpoint to list all factors the user has enrolled and match the same type
your application supports. You also need to obtain the matching authenticator_type
to issue challenges:
request/mfa/challenge
endpoint.
Further customize your MFA flow with Auth0 Actions. To learn more, read Actions Triggers: post-challenge - API Object.