Skip to content

Conversation

@kushalshit27
Copy link
Contributor

@kushalshit27 kushalshit27 commented Nov 4, 2025

🔧 Changes

Adds support for the async_approval_notification_channels property to the auth0_client resource for managing CIBA (Client-Initiated Backchannel Authentication) notification channels.

This property allows configuration of which notification channels are enabled for CIBA requests initiated by a client. The order of channels is significant as it determines the evaluation order.

Example usage:

resource "auth0_client" "my_client" {
  name     = "My Application"
  app_type = "non_interactive"

  # CIBA notification channels (order matters)
  async_approval_notification_channels = [
    "guardian-push",
    "email"
  ]
}

📚 References

🔬 Testing

  • Unit tests pass
  • Acceptance test added: TestAccClientAsyncApprovalNotificationChannels
    • Tests creation with single channel
    • Tests update to multiple channels
    • Tests order preservation

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

- docs/data-sources/client.md: Document async_approval_notification_channels for auth0_client data source.
- docs/data-sources/clients.md: Document async_approval_notification_channels for auth0_clients data source.
- docs/resources/client.md: Add async_approval_notification_channels to auth0_client resource documentation.
- examples/resources/auth0_client/resource.tf: Include async_approval_notification_channels in example resource.
- internal/auth0/client/expand.go: Expand async_approval_notification_channels in client schema.
- internal/auth0/client/flatten.go: Flatten async_approval_notification_channels in client schema.
- internal/auth0/client/resource.go: Add async_approval_notification_channels to client resource schema.
- internal/auth0/client/resource_test.go: Add tests for async_approval_notification_channels functionality.
- docs/data-sources/client.md: Remove 'sms' from async approval notification channels.
- docs/resources/client.md: Remove 'sms' from async approval notification channels.
- examples/resources/auth0_client/resource.tf: Remove 'sms' from async approval notification channels.
- internal/auth0/client/resource.go: Update valid values for async approval notification channels to exclude 'sms'.
- internal/auth0/client/resource_test.go: Update tests to reflect removal of 'sms' from async approval notification channels.
@kushalshit27 kushalshit27 marked this pull request as ready for review November 4, 2025 07:24
@kushalshit27 kushalshit27 requested a review from a team as a code owner November 4, 2025 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants