Closed kowiste closed 1 year ago
command replace to start-dev --spi-phone-default-service=aws
Thanks, but now is having this error
2023-03-27 13:01:22,810 ERROR [org.keycloak.services.error.KeycloakErrorHandler](executor-thread-0) Uncaught server error: com.twilio.exception.AuthenticationException: Username can not be null
2023-03-27 15:01:22 at com.twilio.Twilio.setUsername(Twilio.java:88)
2023-03-27 15:01:22 at com.twilio.Twilio.init(Twilio.java:62)
2023-03-27 15:01:22 at cc.coopersoft.keycloak.phone.providers.sender.TwilioSmsSenderServiceProvider.<init>(TwilioSmsSenderServiceProvider.java:18)
2023-03-27 15:01:22 at cc.coopersoft.keycloak.phone.providers.sender.TwilioMessageSenderServiceProviderFactory.create(TwilioMessageSenderServiceProviderFactory.java:15)
2023-03-27 15:01:22 at cc.coopersoft.keycloak.phone.providers.sender.TwilioMessageSenderServiceProviderFactory.create(TwilioMessageSenderServiceProviderFactory.java:9)
2023-03-27 15:01:22 at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:288)
2023-03-27 15:01:22 at cc.coopersoft.keycloak.phone.providers.spi.impl.DefaultPhoneProvider.sendTokenCode(DefaultPhoneProvider.java:97)
2023-03-27 15:01:22 at cc.coopersoft.keycloak.phone.providers.rest.TokenCodeResource.getTokenCode(TokenCodeResource.java:53)
Which is the username? and how can i set it? enviroment variable, command?
this is Twilio jar Exception. need set account.
Refer: twilio config readme
if you valid on twilio ,tell me, please
Your command should look something like:
command:
- start-dev
- --spi-phone-default-service=twilio
- --spi-message-sender-service-twilio-account=DEAD123789z931...
- --spi-message-sender-service-twilio-token=dead1234789...
- --spi-message-sender-service-twilio-number=+1888...
--spi-phone-message-service-default-service=dummy
is wrong. There was a bug in the documentation.
Im trying to use an twilio account and start keycloak with this configuration
Create the flow and when I try to send the code I can see this in the log
Can I use the environment variable like that? Do I have to do something more?