# C# wrapper demo client authorization callback not being called

**URL:** <https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983>\
**Category:** Windows\
**Created:** [May 10, 2021, 9:12pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983 "2021-05-10T21:12:22Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanricos](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@juanricos](https://devforum.zoom.us/u/juanricos)\
**Post date:** [May 10, 2021, 9:12pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/1 "2021-05-10T21:12:22Z")

</div>

**Description**  
When I attempt to run the demo app the OnAuthenticationReturn callback is never called. After clicking the Auth button in MainWindow.xaml. It hides and there is no further action.

The MessageBox I placed to check for activity, is never shown.

```
 public void OnAuthenticationReturn(AuthResult ret)
        {
            MessageBox.Show("AuthCallback");
            if (ZOOM_SDK_DOTNET_WRAP.AuthResult.AUTHRET_SUCCESS == ret)
            {
                start_meeting_wnd.Show();
            }
            else//error handle.todo
            {

                Show();
            }
        }

```

**Which Windows Client SDK version?**  
C# wrapper v5.5.12511.0422

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
1.Download C# wrapper C# wrapper v5.5.12511.0422  
2. Open \zoom\_sdk\_demo\zoom\_sdk\_demo.csproj  
3. Change project configuration to Release, change platform to x86.  
4. Click Start (in Visual Studio)  
5. MainWindow.xaml is shown.  
6. Input token and Click Auth  
7. Window disappears and there is no other activity, however the program does remain running.

**Device**

- Device: Ryzen desktop
- OS: Windows 10  
Microsoft Visual Studio Community 2019  
Version 16.9.4

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 12, 2021, 4:25pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/2 "2021-05-12T16:25:01Z")

</div>

Hi @juanricos, thanks for using our SDK.

Can you please provide the contents of your JWT **with all credentials redacted**?

Thanks!

---

<div class="post-metadata">

**Author:** ![juanricos](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@juanricos](https://devforum.zoom.us/u/juanricos)\
**Post date:** [May 12, 2021, 4:46pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/3 "2021-05-12T16:46:17Z")

</div>

OK, here is one I generated with a fake key and secret.

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBLZXkiOiJram52ampQanBKQnBpVUJpVGNpamJJSXVpaG91eXZ1eXZPVXkiLCJpYXQiOjE2MjA4Mzc4NTcsImV4cCI6MTYyMTAxMDY1NywidG9rZW5FeHAiOjE2MjA4NDE0NTd9.1nFYLc16JBM\_Zj4hk6Cfpz\_hCA5s\_I04mULDSFS0Igs

---

<div class="post-metadata">

**Author:** ![j-ishii](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@j-ishii](https://devforum.zoom.us/u/j-ishii)\
**Post date:** [May 12, 2021, 8:13pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/4 "2021-05-12T20:13:48Z")

</div>

I have the same problem.

I used the JWT I generated in the C++ demo app(\zoom-sdk-windows-5.5.12511.0422\bin\sdk\_demo\_v2.exe). It authenticated successfully at that time.  
I used the same JWT in the C# demo app in Visual Studio 2019 within a minute. And then, the OnAuthenticationReturn callback was not called. My project configuration is Release / x86.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 12, 2021, 9:21pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/5 "2021-05-12T21:21:51Z")

</div>

Hi @j-ishii and @juanricos,

So it does seem like you both are using the correct JWT format. The next step would be to check that all of the SDK files have been correctly added to the project. Can you please confirm that you are following the steps listed out in our documentation [here](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/c-sharp-wrapper) precisely?

Thanks!

---

<div class="post-metadata">

**Author:** ![juanricos](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@juanricos](https://devforum.zoom.us/u/juanricos)\
**Post date:** [May 12, 2021, 11:48pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/6 "2021-05-12T23:48:52Z")

</div>

Thank you for the reply.

Originally, I did not do that folder rearranging because of what I read here: [Windows SDK Demo dosn't work - #4 by Michael\_Condon](https://devforum.zoom.us/t/windows-sdk-demo-dosnt-work/47617/4)

Michael\_Condon writes " No need to move files over from the C++ SDK."

But I did try to follow the instructions today and it just leads to numerous errors when building the project. So it does seem that those instructions are indeed outdated.

With the project as downloaded, it builds and runs fine, just no OnAuthenticationReturn callback.

---

<div class="post-metadata">

**Author:** ![Samual](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Samual](https://devforum.zoom.us/u/Samual)\
**Post date:** [May 13, 2021, 5:51am UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/7 "2021-05-13T05:51:41Z")

</div>

I also downloaded latest Windows C# SDK and getting same behaviour. Nothing happen after entering token, callback not invoked.

---

<div class="post-metadata">

**Author:** ![Samual](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Samual](https://devforum.zoom.us/u/Samual)\
**Post date:** [May 13, 2021, 6:51am UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/8 "2021-05-13T06:51:05Z")

</div>

Previous release v5.5.12509.0330 is working.  
v5.5.12511.0422 is broken.

---

<div class="post-metadata">

**Author:** ![juanricos](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@juanricos](https://devforum.zoom.us/u/juanricos)\
**Post date:** [May 13, 2021, 6:22pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/9 "2021-05-13T18:22:13Z")

</div>

For me, I am seeing identical behavior in v5.5.12509.0330 and v5.5.12511.0422, No callback after entering token.

---

<div class="post-metadata">

**Author:** ![j-ishii](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@j-ishii](https://devforum.zoom.us/u/j-ishii)\
**Post date:** [May 13, 2021, 6:55pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/10 "2021-05-13T18:55:19Z")

</div>

I was able to solve this problem.

Procedure

1. Unzip zoom-c-sharp-wrapper-5.5.12511.0422.zip (Start with a clean sln)
2. Open the file zoom\_sdk\_c\_sharp\_wrap.sln in VisualStudio
3. Change project configuration to Release, change platform to x86
4. Build the solution
5. Right-click on “zoom\_sdk\_demo” in the Solution Explorer after the build is finished
6. Click “Set as StratUp Project”
7. Click Start (in Visual Studio)
8. MainWindow.xaml is shown
9. Input token and Click Auth

The guide says “Open the demo project by clicking zoom\_sdk\_demo.csproj”, but I started the demo with the sln file open.

My development environment is as follows  
・Windows 10  
・Microsoft Visual Studio Professional 2019 Version 16.9.4  
・C# wrapper v5.5.12511.0422

---

<div class="post-metadata">

**Author:** ![juanricos](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@juanricos](https://devforum.zoom.us/u/juanricos)\
**Post date:** [May 13, 2021, 8:29pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/11 "2021-05-13T20:29:57Z")

</div>

That worked, thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 14, 2021, 12:13am UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/12 "2021-05-14T00:13:28Z")

</div>

Thank you @j-ishii, for sharing the solution that worked for you!

Please don’t hesitate to reach back out in a new thread with any additional questions. 🙂

---

<div class="post-metadata">

**Author:** ![Samual](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Samual](https://devforum.zoom.us/u/Samual)\
**Post date:** [May 14, 2021, 6:38am UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/13 "2021-05-14T06:38:09Z")

</div>

Worked for me too.

Means first we need to compile and generate new wrapper binary. Pre-compiled binary that comes with zip will not work.

Good catch @j-ishii

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 14, 2021, 5:08pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/14 "2021-05-14T17:08:18Z")

</div>

Glad to hear their solution worked for you as well!

---

<div class="post-metadata">

**Author:** ![Takabrycheri](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Takabrycheri](https://devforum.zoom.us/u/Takabrycheri)\
**Post date:** [June 11, 2021, 7:32am UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/15 "2021-06-11T07:32:45Z")

</div>

Hi, I also have this problem, but this doesn’t work for me

---

<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:** [June 11, 2021, 4:55pm UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/16 "2021-06-11T16:55:16Z")

</div>

Hey @Takabrycheri,

Can you start a new thread with details about the issue you are facing so that we can assist you?

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:** [July 12, 2021, 2:55am UTC](https://devforum.zoom.us/t/c-wrapper-demo-client-authorization-callback-not-being-called/49983/17 "2021-07-12T02:55:32Z")

</div>

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