netzbegruenung / keycloak-mfa-plugins

Keycloak plugins for MFA (enforce MFA, SMS authentication step, native app integration)
Apache License 2.0
45 stars 12 forks source link

Implement flexible API #4

Closed svenseeberg closed 2 years ago

svenseeberg commented 2 years ago

Support configuration for multiple SMS provider APIs. It should be possible to select between URL encoded parameters and JSON body. And it should be possible map the 4 attributes username, access token, receiver number and message text to 4 arbitrary JSON or urlencoded variables.

This should be added to the settings of each flow (https://github.com/netzbegruenung/keycloak-2fa-sms-authenticator/blob/main/src/main/java/netzbegruenung/keycloak/authenticator/SmsAuthenticatorFactory.java#L51) to allow different providers in different flows and realms.

For example https://www.twilio.com/docs/sms/api should work. https://www.gtx-messaging.com/de/api-docs/sms-rest-api/ as well.