Skip to content
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

Merged
merged 4 commits into from
Nov 13, 2017
Merged

Conversation

zachmargolis
Copy link
Contributor

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> tags

Also fixes:

  • No more infinite looping/repeating! (max of 5)

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.

This reverts commit 741e48e.

**Why**: We want to use more advanced TwiML features
like selecting language
@zachmargolis zachmargolis self-assigned this Oct 17, 2017
@zachmargolis zachmargolis force-pushed the margolis-translate-voice-otp branch 3 times, most recently from 89be4fb to e13aec1 Compare October 17, 2017 17:23
**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
@zachmargolis zachmargolis force-pushed the margolis-translate-voice-otp branch from e2e145d to 395f69f Compare October 17, 2017 18:13
repeat_count: repeat_count - 1
)
)
end

def cipher
Gibberish::AES.new(Figaro.env.attribute_encryption_key)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@jmhooper jmhooper left a 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?

@jmhooper
Copy link
Member

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.

@jmhooper
Copy link
Member

I've added the secrets to dev. I'm going to deploy this there to try it out.

@jmhooper jmhooper merged commit 64ebbcc into master Nov 13, 2017
@jmhooper jmhooper deleted the margolis-translate-voice-otp branch December 12, 2017 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants