最近搜索


没有最近搜索

Unable to authenticate users through Messaging SDK with JWT



已于 2023年4月18日 发布

Hi,

Having troubles authenticating users with a JWT through the Mobile Android SDK. We're getting 401 Unauthorized response from the SDK.

We've followed the documentation and implemented the SDK version 2.9.0.
It has also worked before, but stopped working recently.

We're creating the JWT and validated it through jwt.io and all looks good. 

Would appreciate some help to debug this further


0

3

3 条评论

Tried these fixes without success:

  • Updating to latest SDK
  • Creating a new Android app in Zendesk with a new secret and channelKey
  • Added kid (app id) to JWT
  • Added jwtId to JWT
  • "End User Authentication" settings page is updated to enable JWT + Redirect to SSO as described in docs
  • external_id, iat, jid, name, email all added

This is the JWT token format:

 

{
  "email": "email@email.com",
  "external_id": "388948a1-f3a6-4937-a9e4-bf63c0f16574",
  "iat": 1681828371,
  "jti": "49170224-15e3-4b3e-a0fe-faaa08abae4d",
  "name": "Test Test",
}

1


Also having this problem but for the messaging web widget

2


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey folks, 
 
For auth related issues it's best to open up a support ticket so that we can take a closer look at your account.

Thanks!

0


请先登录再写评论。

找不到所需的内容?

新建帖子