docs: README section on Gmail App Password setup for MassHealth OTP auto-read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1101,6 +1101,67 @@ curl localhost:5003/health
|
||||
|
||||
---
|
||||
|
||||
## MassHealth OTP Email Setup (Gmail Auto-Read)
|
||||
|
||||
When the MassHealth Dental portal (providers.masshealth-dental.org) asks for a verification
|
||||
code, it emails the code to the office Gmail. The MH eligibility worker can read that email over
|
||||
IMAP and type the code in by itself, so nobody has to type the OTP by hand. If this is not set up,
|
||||
or no code arrives within about 2 minutes, the app falls back to the "Enter OTP" popup.
|
||||
|
||||
Google does not let programs sign in with the normal Gmail password, so this needs a Gmail
|
||||
**App Password** (a 16-character code that can only read mail and can be revoked at any time).
|
||||
|
||||
### Step 1 — Turn on 2-Step Verification
|
||||
|
||||
1. Sign in to the office Gmail account and go to <https://myaccount.google.com/security>.
|
||||
2. Open **2-Step Verification**. If it says **Off**, click **Turn on 2-Step Verification** and
|
||||
finish the steps. Any second step works (Google prompt on a phone, passkey, authenticator app
|
||||
or phone number); you do not need to add a new one if one is already listed.
|
||||
|
||||
### Step 2 — Create an App Password
|
||||
|
||||
1. Go to <https://myaccount.google.com/apppasswords> (type the address directly — it is not
|
||||
always shown in the menus).
|
||||
2. Enter a name such as `MH OTP` and click **Create**.
|
||||
3. Copy the 16-character code (e.g. `abcd efgh ijkl mnop`). Google shows it only once — if it is
|
||||
lost, delete it and create a new one.
|
||||
|
||||
If the page says *"The setting you are looking for is not available for your account"*, then
|
||||
2-Step Verification is still off, the account is a work/school (Google Workspace) account whose
|
||||
admin blocks App Passwords, or the account uses Advanced Protection.
|
||||
|
||||
### Step 3 — Make sure IMAP is on
|
||||
|
||||
In Gmail: **Settings (gear) → See all settings → Forwarding and POP/IMAP → IMAP access → Enable
|
||||
IMAP → Save Changes**. (Newer Gmail accounts have IMAP always on and may not show this option.)
|
||||
|
||||
### Step 4 — Enter it in the app
|
||||
|
||||
**Settings → Insurance Credentials → edit the MH credential:**
|
||||
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| OTP Email / Phone | the office Gmail address that receives the MassHealth codes |
|
||||
| OTP Email Password | the 16-character App Password (spaces are fine) |
|
||||
|
||||
The MassHealth portal account itself must send its codes to this same Gmail address (the OTP
|
||||
popup on the portal shows `Verify with your email` and a masked address like `s***m@gmail.com`).
|
||||
Codes sent by text message cannot be read.
|
||||
|
||||
### How it works / troubleshooting
|
||||
|
||||
- The worker only uses emails from `masshealth-dental.org` that arrive **after** the current
|
||||
login started, reads the code from the "Enter a code instead: ######" line, and checks both
|
||||
the Inbox and Spam every 5 seconds. Emails are not marked as read or changed.
|
||||
- Watch the Selenium service terminal for lines starting with `[email OTP]` and `[MH OTP]`.
|
||||
- `IMAP login/search failed: ... AUTHENTICATIONFAILED` → wrong Gmail address or App Password,
|
||||
or 2-Step Verification was turned off (which deletes all App Passwords). Create a new one.
|
||||
- `No code found` → the code email did not arrive in time, or went to a different address.
|
||||
- To stop auto-reading, clear the OTP Email Password field. To revoke access completely, delete
|
||||
the App Password at <https://myaccount.google.com/apppasswords>.
|
||||
|
||||
---
|
||||
|
||||
## Twilio In-Browser Calling Setup (Dial Pad)
|
||||
|
||||
The dial pad on the Patient Connection page lets staff make real phone calls directly through the browser (mic + speaker) using Twilio Voice SDK. One-time setup is required in the Twilio Console.
|
||||
|
||||
Reference in New Issue
Block a user