skip to content
Alvin Lucillo

Assign auth0 action to a trigger

/ 1 min read

Yesterday’s entry created map_saml_roles auth0 action, but it doesn’t yet associate it to a post login trigger. The terraform resource below references map_saml_roles and assigns it to the post-login trigger.

resource "auth0_trigger_action" "map_saml_roles" {
  trigger      = "post-login"
  action_id    = auth0_action.map_saml_roles.id
  display_name = auth0_action.map_saml_roles.name
}