# Authret\_keyorsecretwrong

**URL:** <https://devforum.zoom.us/t/authret-keyorsecretwrong/50591>\
**Category:** Windows\
**Created:** [May 19, 2021, 1:39pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591 "2021-05-19T13:39:46Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 19, 2021, 1:39pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/1 "2021-05-19T13:39:46Z")

</div>

**Description**

- Authentication error AUTHRET\_KEYORSECRETWRONG while returning from onSDKAuthed method in Demo Application.
- Generated the JWT token from [https://jwt.io](https://jwt.io) as described on the doc.
- using the key and secret from the SDK tile of Zoom Marketplace and not the JWT tile.
- Have also tried on Qt application with MSVC. Same results

**Which Desktop Client SDK version?**  
v5.5.12511.0422

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Getting the error on the demo project itself

**Screenshots**

**Device (please complete the following information):**

- Device: Dell Desktop with Intel i3-4130
- OS: Windows 10 Pro

**Additional context**

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 19, 2021, 10:47pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/2 "2021-05-19T22:47:47Z")

</div>

Hey @rajeevk,

Thanks for using the dev forum!

This is likely do to some error in the JWT payload. Can you check out this tutorial and see if it helps? [“auth sdk failed” when running zoom sdk demo - #7 by Michael\_Condon](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/7)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 20, 2021, 7:16am UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/3 "2021-05-20T07:16:09Z")

</div>

Hi @Michael_Condon  
Thank you for your prompt help.  
I am confused now. I followed the steps you mentioned and for once the error was LastErrorType\_Meeting. Restarted the app and now with the same token, each time it is showing the previous error LastErrorType\_Auth (i.e. AUTHRET\_KEYORSECRETWRONG) again.  
I have re-generated the sdk secret and changed the iat in payload too. Unfortunately nothing worked.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 20, 2021, 3:19pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/4 "2021-05-20T15:19:29Z")

</div>

Hey @rajeevk,

Interesting. Can you try providing your key and secret to the SDK instead of a JWT? To do this change the AuthContext object to an AuthParam object and hardcode your key and secret before authing. Please note, this should NEVER be done in production. This is only for troubleshooting purposes.

> ZOOM\_SDK\_NAMESPACE::AuthParam param;  
> param.appKey = L"Your key";  
> param.appSecret = L"Your secret";  
> if (ZOOM\_SDK\_NAMESPACE::SDKERR\_SUCCESS != m\_AuthSDKWorkFlow.Auth(param)) …

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 20, 2021, 3:38pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/5 "2021-05-20T15:38:52Z")

</div>

Hi,  
I tried changing AuthContext object to AuthParam object. Now it’s failing with “auth sdk failed” message (SDKERR\_INTELNAL\_ERROR).  
I have uploaded the logs [here](https://drive.google.com/drive/folders/1ogvTdjzXyaRyRVKkEQPWOwAZsJjG7xSc?usp=sharing).  
All cases are covered in these logs. ie. LastErrorType\_Meeting then LastErrorType\_Auth and finally SDKERR\_INTELNAL\_ERROR. Please Help.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 20, 2021, 4:20pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/6 "2021-05-20T16:20:45Z")

</div>

Hey @rajeevk,

Have you set the domain and initialized the SDK before calling auth?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 20, 2021, 4:25pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/7 "2021-05-20T16:25:28Z")

</div>

Yes. Domain being selected as [https://zoom.us](https://zoom.us) and SDK is also initialized.  
Actually I haven’t changed anything on the Demo application. Did you get anything from the logs?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 20, 2021, 5:05pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/8 "2021-05-20T17:05:18Z")

</div>

Hey @rajeevk,

Not yet, can you also attach the “last log file” file.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 21, 2021, 4:51am UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/9 "2021-05-21T04:51:25Z")

</div>

Attached the last log file too. Let me know if you can find what we are missing.

Thanks,

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 21, 2021, 6:30pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/10 "2021-05-21T18:30:13Z")

</div>

Thanks @rajeevk, I will let you know what we find.

Michael

---

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 24, 2021, 9:20am UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/11 "2021-05-24T09:20:09Z")

</div>

Hi Michael,  
You got anything from the logs? We are still stuck with this issue.

Regards,

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 24, 2021, 6:36pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/12 "2021-05-24T18:36:50Z")

</div>

Hey @rajeevk,

The logs indicate that you passed your key into the JWT field. You need to change AuthContext to AuthParam and pass in your key and secret.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![rajeevk](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rajeevk](https://devforum.zoom.us/u/rajeevk)\
**Post date:** [May 27, 2021, 3:59am UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/13 "2021-05-27T03:59:15Z")

</div>

Hi Michael,  
One of the logs had AuthParam insted of AuthContext. I am attaching a fresh log again. Please have a look and let us know.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 28, 2021, 7:15pm UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/14 "2021-05-28T19:15:29Z")

</div>

Hey @rajeevk,

Will do, thanks.

Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 28, 2021, 5:15am UTC](https://devforum.zoom.us/t/authret-keyorsecretwrong/50591/15 "2021-06-28T05:15:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
