Preferred Name
Connection Params [ENV: TEST]
# -----------------------------
# PREFERRED NAME Endpoint
# -----------------------------
PREFERRED_NAME__API_KEY=[see .env on S3 Bucket]
WORKFLOW_URL__GENERATE_EMAIL=[see .env on S3 Bucket]
WORKFLOW_URL__UPDATENAME=[see .env on S3 Bucket]Description
This Application allows users to change their Preferred Name and Email Address. The user fills out a form where they can request to change their first name, last name, or both. Whatever change they request in this form will also update their email address to [email protected] if they belong to the BPL or BPHC agencies; only their name will be updated. For users in the BPL or BPHC agencies, the app will skip the confirmation screen.
App Request Flow
On the
Enter Nameview, on submit a request is send to the node server route/preferred-name-requestThis route constructs params needed to make request to the [PREFERRED NAME]
WORKFLOWendpointURLrequestJsonauthorizationtoken
The params are sent to
requestNewNameEmailfunction on line 28 that will connect to theWORKFLOWand return the new name and/or emailIF the user belongs to the
BPL or BPHCagenciesThe UI/UX sends the request to the
/preferred-name-submitROUTE. This route method submits a request to the WORKFLOW endpoint to change the user's name and/or display name. For these users, only their names will be requested to change. TheSUCCESS/ERRORview is displayed depending on the result from theWORKFLOW.
ELSE ^ ... The App displays the next
VIEW(Confirmation), used to confirm the user's changes and displays the newEmail Addresscomposed from the first / last name entered in the previousview.SUBMITTINGthe request from the Confirmationviewwill send the request to the/preferred-name-submitROUTE, the route will use step 3 (above),SUCCESS/ERRORviews are displayed depending on the result from theWORKFLOW.
App Files/Resources
Preferred Names Endpoint Information provided the
Security Team(Node) Server
Routes
Request a new Name
path: services-js/access-boston/src/server/access-boston.ts
line: 443
Route RequestMethod
Submit new Name and/or Email Request
path: services-js/access-boston/src/server/access-boston.ts
line: 525
Route RequestMethod
Last updated
Was this helpful?