Unauthorized error in iOS and Android sdk.



投稿日時:2023年7月06日

Zendesk support SDK is integrated in iOS and Android platforms for Guide, Tickets, and Chat features. As per the documentation, we are integrated the Support SDK, Enabled the JWT authentication, and configured the backend APIs and client code as per the documentation.

From the mobile side, we are updating identity as JWT token same as the below-mentioned code.

Zendesk.initialize(appId: "9cf3743ac0381f2357d0bd9a446158b5e26146a28747ae40", clientId: "mobile_sdk_client_c3ebb9d0999720cd6d3f",zendeskUrl: "https://ethizo.zendesk.com");
let token = Identity.createJwt(token: "unique_db_user_identifier")
Zendesk.instance?.setIdentity(token)

While trying to show the Guides screen the same as below mentioned code we are getting "Couldn't authenticate you" from SDK but it's working fine earlier. 

Please find more details below.

Code:

let helpCenter = HelpCenterUi.buildHelpCenterOverviewUi(withConfigs: [])
navigationController?.pushViewController(helpCenter, animated: false)

 

Here is the api that SDK is hitting

https://ethizo.zendesk.com/access/sdk/jwt

POST Params

{
    "user": {
        "token": "bd8a9ca8ec6a98eb9298f3a9b18c4eff"
    }
}

Response:

{
    "error": "Couldn't authenticate you"
}

Response Code: 401
Remote address: ethizo.zendesk.com/104.16.53.111:443

Zendesk-SDK/4.0.0 iOS/16.4 Variant/Core


Please help in this regard.

Thanks.


0

3

3件のコメント

Unauthorized error in iOS and Android SDK refers to an error message indicating that access to a certain resource or functionality is denied due to lack of proper authorization. It typically occurs when an application or user tries to perform an action or access a restricted feature without the required permissions or valid authentication credentials.

 

 

0


Hi there,

I did the troubleshooting and it's working perfectly fine i am attaching screenshots of the command result for your information.

We are stuck on this for weeks can you please help us to get this fixed ASAP?

Thanks.

 

 

 

0


Hi there! My guess would be that the issue is with your SSL connection. Take a look at the troubleshooting steps here and let us know if that resolves it for you.

0


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿