stormpath-sdk-java icon indicating copy to clipboard operation
stormpath-sdk-java copied to clipboard

No way of overwriting the default message upon creation of an SmsFactor with implicit creation of Challenge

Open mrafiei opened this issue 9 years ago • 0 comments

In case users want to create an SmsFactor with implicit challenging in same request they do the following:

CreateSmsFactorRequestBuilder builder = Factors.SMS.newCreateRequestFor(factor).createChallenge();
factor = account.createFactor(builder.build());

There is no way for overwriting the default sms message. Solution: Either let the createChallenge() take a parameter String message or provide a new method createChallenge(String message)

mrafiei avatar Oct 10 '16 23:10 mrafiei