java.lang.Object
com.irurueta.authserver.authorization.infrastructure.sms.TwilioConfiguration

@Configuration(proxyBeanMethods=false) @Profile("twilio & !sns") @EnableConfigurationProperties(TwilioProperties.class) public class TwilioConfiguration extends Object
Wires the Twilio sender when the twilio profile is active (and SNS is not, so that never two SmsSender beans exist).
  • Constructor Details

    • TwilioConfiguration

      public TwilioConfiguration()
  • Method Details

    • twilioMessageClient

      @Bean public TwilioMessageClient twilioMessageClient(TwilioProperties properties)
      Creates the SDK wrapper.
      Parameters:
      properties - credentials and sender, from the environment.
      Returns:
      the client.
    • twilioSmsSender

      @Bean public SmsSender twilioSmsSender(TwilioMessageClient client)
      Creates the sender.
      Parameters:
      client - SDK wrapper.
      Returns:
      the Twilio sender.