Skip to content

Feat: add module ephemeral authorization handler#995

Merged
moustachu merged 4 commits into
rc-4.0.0from
feat/4.0.0-ephemeral_authorization_handler
May 28, 2026
Merged

Feat: add module ephemeral authorization handler#995
moustachu merged 4 commits into
rc-4.0.0from
feat/4.0.0-ephemeral_authorization_handler

Conversation

@moustachu

Copy link
Copy Markdown
Member

Adding module for SMS ephemeral authorization

This pull request introduces a new SMS gateway integration for sending authentication codes, including a configurable service and localized message templates. The main changes are the addition of the SmsGatewayService, configuration options via environment variables, and new translations for SMS messages in multiple languages.

SMS Gateway Integration:

  • Added a new Decidim::SmsGatewayService class to handle sending SMS authentication codes, supporting both Message Business and generic SMS providers. The service constructs requests based on configuration and uses localized messages. (app/services/decidim/sms_gateway_service.rb)
  • Updated the Gemfile to include the decidim-ephemeral_authorization_handler dependency, which is required for the new SMS service. (Gemfile)

Configuration & Environment:

  • Enhanced the decidim.rb initializer to allow SMS gateway service and its context (such as URL, credentials, and platform name) to be set via environment variables. (config/initializers/decidim.rb)

Localization:

  • Added localized SMS message templates for authentication codes in English, French, German, and Dutch. (config/locales/en.yml, config/locales/fr.yml, config/locales/de.yml, config/locales/nl.yml) [1] [2] [3] [4]

@moustachu moustachu marked this pull request as ready for review May 28, 2026 12:51
@moustachu moustachu merged commit b32aa6b into rc-4.0.0 May 28, 2026
13 checks passed
@moustachu moustachu deleted the feat/4.0.0-ephemeral_authorization_handler branch May 28, 2026 14:44
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.

1 participant