privacyIDEA
privacyIDEA is an open-source solution for identity and access management (IAM) that focuses on multi-factor authentication (MFA) to enhance security during user logins. It allows organizations to manage and enforce strong authentication mechanisms such as one-time passwords (OTP), smartcards, or biometric authentication. privacyIDEA enables administrators to configure authentication policies, manage user devices, and integrate with existing authentication systems like LDAP, Active Directory, and cloud-based applications. It supports a wide range of authentication tokens and offers flexibility in securing access to networks, systems, and data. privacyIDEA is particularly useful for companies looking to improve their security by implementing MFA and centrally managing user authentication. We explain how to set up with seven to send SMS.
Create SMS Gateway Definition
First, seven must be set up as an SMS service provider. Start by navigating to "Configuration → System → SMS Gateways → Create New SMS Gateway".
- 1Define NameEnter a descriptive name, e.g., "seven". 
- 2Choose Provider ModuleSet this value to "privacyidea.lib.smsprovider.HttpSMSProvider.HttpSMSProvider". 
- 3Define DescriptionEnter a descriptive description, e.g., "SMS dispatch via seven". 
- 4Enforce SSL VerificationAlthough not technically required, we recommend setting "CHECK_SSL" to "yes" for security reasons. 
- 5Choose HTTP MethodSet "HTTP_METHOD" to "POST". 
- 6Define Error ResponseSet "RETURN_FAIL" to "101". 
- 7Define Success ResponseSet "RETURN_SUCCESS" to "100". 
- 8Define URLSet this value to "https://gateway.seven.io/api/sms". 
- 9Add OptionsIn this section, we need to define which values the servers from seven expect in requests. 
- 10Set Message ContentAdd a pair with the key "text" and the value "Your OTP code is: {otp}". 
- 11Set Message RecipientAdd a pair with the key "to" and "{phone}" as the value. Additional key-value pairs can be added according to the API documentation.
- 12Set HeaderFor authentication, please add a pair with the key X-Api-Key and YOUR_API_KEY as the value.  
- 13SMS Token SettingsThe SMS gateway just created must be selected for SMS tokens. Navigate to "Configuration → Tokens → SMS". 
- 14Select Predefined SMS Gateway ConfigurationSelect the name of the SMS gateway just added - in our case "seven". Confirm by clicking "Save".  
- 15Register New TokenIn this section, we test sending tokens via SMS. To do this, navigate to "Tokens → Register Token". 
- 16Phone NumberSet this field to a currently available phone number. 
- 17A Token-Specific SMS GatewayIf you have configured multiple SMS gateways, select "seven" from the list. Confirm by clicking "Register Token". 