-
Notifications
You must be signed in to change notification settings - Fork 265
add intercom_user_jwt #2858
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: main
Are you sure you want to change the base?
add intercom_user_jwt #2858
Conversation
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.
hi @eredi93 thanks for the PR.
It looks straightforward.
Just to explain how I understand this change: You'd like to allow customers to include a User JSON Web Token in payloads being sent to Segment. The token will then be included in the requests made to Intercom's API.
As for the approach taken, the customer will need to update their tracking code to ensure that the new intercom_user_jwt field is populated. For some customers this might mean needing to get a developer involved.
A way around this might be to write some code in the perform() function which automatically finds the JWT and includes it in the payload to Intercom (is the JWT in a cookie or local storage?). You could then simply add a new Field allowing the customer to specify if they want the JWT to be used.
Note sure if the above is feasible, but thought I'd mention it as it might be a nicer customer experience.
Please let me know how you'd like to proceed. Happy with either option.
Kind regards,
Joe
hi again @eredi93 - looks like some CI checks are failing.
|
@joe-ayoub-segment Thanks for looking at the PR. your understanding of the change is correct. Unfortunately this is a field the customer will need to add themselves. The JWT ins't stored in any cookie and is used to boot the Intercom messenger (we use the JWT to log in the correct user). This JWT token needs to be generated by the customer with a secret they can in their Intercom workspace https://app.intercom.com/a/apps/_/settings/workspace/security?tab=messenger-security This is a help centre article that explain how to use JWTs https://www.intercom.com/help/en/articles/10589769-authenticating-users-in-the-messenger-with-json-web-tokens-jwts We are in the process of deprecating Identity Verification. This field will behave the same way as we are currently asking customers to implement identity verification: https://www.intercom.com/help/en/articles/2047-install-intercom-with-segment#h_9600887271 I also just ran |
Hello 👋 ,
At Intercom we are in the process of rolling out a new way of securing the Intercom messenger by using JWT instead of IdV (we are currently in open beta).
This PR is adding the new field
intercom_user_jwt
.Testing
I added a test for the new filed