api
argument.
Migrating an Action created during the period prior to General Availability (GA) should typically involve the following steps:
api
method as outlined in the Performing side effects section.event.protocol === 'redirect-callback'
, review the Redirect with Actions page.event.request.query
and event.request.body
objects. These are exposed regardless of whether the authorization was initiated via a GET
or POST
request. Many protocol-specific query or body parameters sent as part of an authorization request are now also available as first-class values on the event.transaction
object. We recommend that you use event.transaction
rather than event.request.query
and event.request.body
unless your use case is not supported. A complete mapping of these changes is below:
Pre-GA Property | GA Property |
---|---|
event.actor.ip | event.request.ip |
event.actor.hostname | event.request.hostname |
event.actor.geoIp | event.request.geoip |
event.actor.language | event.request.language |
event.actor.method | event.request.method |
event.actor.userAgent | event.request.user_agent |
event.actor.body | event.request.body |
event.actor.query | event.request.query |
event.actor.query.audience | event.resource_server.identifier |
event.actor.query.scope | event.transaction.requested_scopes |
event.actor.query.acr_values | event.transaction.acr_values |
event.actor.query.ui_locales | event.transaction.ui_locales |
event.protocol | event.transaction.protocol |
context.secrets | event.secrets |
event.user
object has had its properties changed from camel case to snake case in order to match the Auth0 User Profile structure. For example, event.user.appMetadata
has been changed to event.user.app_metadata
.
api
object is provided to encapsulate these changes and provide better in-editor type hints and inline documentation.
api.access.deny
is the preferred approach.