최근 검색


최근 검색 없음

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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물