-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set language in Voice OTP TwiML #1745
Conversation
This reverts commit 741e48e. **Why**: We want to use more advanced TwiML features like selecting language
89be4fb
to
e13aec1
Compare
**Why**: Updated code layout - Change basic auth to be a config value, not an ENV var - Set locale in voice OTP URLs - Set "language" attribute inside <Say> for better pronunciation
**Why**: URL params and GET params are in our logs, so this keeps plaintext codes out of our logs
e2e145d
to
395f69f
Compare
repeat_count: repeat_count - 1 | ||
) | ||
) | ||
end | ||
|
||
def cipher | ||
Gibberish::AES.new(Figaro.env.attribute_encryption_key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Is there any way for us to test drive this before merging and going to dev?
I opened a devops PR to add the basic auth username and password configs https://github.com/18F/identity-devops/pull/664. This needs to wait for that to be merged. |
I've added the secrets to dev. I'm going to deploy this there to try it out. |
This brings back old code to serve TwiML directly from our application, because this is the only way we can set the "language" attribute in
<Say>
tagsAlso fixes:
NOTE: we'll want to make sure we deploy lower environments with a new config value for basic auth first
A lot of this is old code, updated because our app has changed a bit, so all the new stuff is in the second commit.