Recent searches


No recent searches

Having issue when trying to authenticate



Posted Feb 14, 2022

We are using loginUser(jwt) to authenticate a user, but the only data saved (and retrieved) is the external_id.

The jwt contains also a name and an email.

 

This happens on both platforms (Android and iOS).

 


1

6

6 comments

image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hey Ovidiu,
 
Can you confirm to the following details:
 
  • Which Zendesk SDK and version you're authenticating users for?
  • Is the JWT payload constructed as noted in our JWT token documentation?
 
Also, can you share the code you're using to supply the JWT token to the SDK?
 
Best,

0


Hey Christopher,

Thanks for your response.

 

We are using Android SDK and also iOS SDK. 

Version 2.1.0 (I think it's the latest one).

We followed this steps:

Android SDK: https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/android/getting_started/

iOS SDK: https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/ios/getting_started/

 

Yes, it is. When we test our JWT into the https://jwt.io/ it returns the correct data.

 

Android login/logout/open chat implementation

 

iOS login/logout/open chat implementation

 

Note: we are developing our application in Flutter so the SDKs are integrated in the native code.

The flow is represented like this: Flutter Dart code -> Native code (Android/iOS) -> Zendesk SDK (Android/iOS)

0


image avatar

Mick O'Donnell

Zendesk Product Manager

Hi Oividu,

Unfortunately this is a currently product limitation (mentioned in this article). Only the external ID is surfaced in Agent Workspace today. We are currently working to bring the Name and Email through at well. No harm in including it in your JWT payload today, it won't break the authentication step, and soon it will be surfaced in Agent Workspace to your agents. You won't need to update your SDK implementation.

0


What value should be in the `kit` field in the JWT header?  The docs are not clear on this point.

0


image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Abe! I'm guessing you're referring to the `kid` and for that, you'll want to use the ID that is generated here, starting with "app_...".

1


Perfect thanks Greg Katechis!

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post