Package com.irurueta.authserver.authorization.application.sms
package com.irurueta.authserver.authorization.application.sms
Use cases of the SMS channel: phone enrolment and verification, cost-capped sending of codes and the enrolment
query of the SMS second factor.
-
ClassDescriptionConfirms a phone with the code that was sent to it.Finds the verified phone of a user, which the account API shows masked.Tells whether a user has a verified phone.Thrown when the text typed as a phone number is not a valid number.Outcome of starting a phone enrolment.Removes the phone of a user, verified and pending.Requests an SMS inside the cost policy: the country must be served and the spending of the window and of the day, including this message, must stay within their caps.Thrown when an SMS is not sent because it would exceed the spending cap of the window or of the day.Declares the policy of the SMS channel as a bean.Thrown when an SMS is not sent because its country is not served, or cannot be determined.Texts of the SMS messages.Settings of the SMS channel, bound from
authserver.sms.*once and validated at startup.Base of the reasons why an SMS is refused before it is sent.Event published when a text message, whose cost is already recorded within the budget, must be sent.Starts the enrolment of a phone: normalises the number and sends it a verification code.