-
Notifications
You must be signed in to change notification settings - Fork 10
Chi 3523 aselo webchat poc backend #3724
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
base: CHI-3523-aselo_webchat_poc
Are you sure you want to change the base?
Chi 3523 aselo webchat poc backend #3724
Conversation
# Conflicts: # lambdas/account-scoped/src/router.ts
…elo_webchat_poc_backend
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.
Hard for me to distinguish what is the original React app that we are basing off and what is the custom code being added, so I don't think I can make useful comments on this one
EDIT: Sorry this was intended to go in #3726 🤦♂️
gpaoloni
left a comment
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 to me! I tried accessing hrm with the token generated here and it does not grants access
tokenResult {
"_tag": "Result",
"status": "error",
"message": "Invalid token provided",
"error": "Invalid Access Token grants"
}
| }; | ||
| }; | ||
|
|
||
| export const newJsErrorResult = <TError extends Error>( |
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.
Isn't this the same as newErr({ message: error.message, error })?
| 'webchatAuth/initWebchat': { | ||
| requestPipeline: [], | ||
| handler: initWebchatHandler, | ||
| }, | ||
| 'webchatAuth/refreshToken': { | ||
| requestPipeline: [], | ||
| handler: refreshTokenHandler, | ||
| }, |
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.
Are these needed in both. here and in ENV_SHORTCODE_ROUTES?
Description
Follows on from #3726 by implementing our own auth backend in the account scoped lambda.
It adds an auth mechanism for endpoints restricted to 'guest' webchat users, and allows routes using the helpline short code (because new webchat hides account SIDs from users)
Checklist
Other Related Issues
None
Verification steps
AFTER YOU MERGE
You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P