# Linux Zoom meeting sdk not generating authentication return callback,can provide a sample demo?

**URL:** <https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076>\
**Category:** Windows\
**Created:** [September 14, 2023, 3:26am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076 "2023-09-14T03:26:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 3:26am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/1 "2023-09-14T03:26:09Z")

</div>

linux Zoom\_sdk not generating authentication return callback

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 4:05am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/2 "2023-09-14T04:05:19Z")

</div>

@617505352 ,

Could you share more details such as the code snippet, and the version which you are using?

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 4:57am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/3 "2023-09-14T04:57:27Z")

</div>

the version is 5.15.12.7715 ，

 ![img_v2_af95ae74-a52c-4593-b104-92efad2dd2cg](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/7/67ce737f59e66d1e491dc6eaaade4c2f1a810ab4.jpeg)  
 ![img_v2_32ab971a-0921-41c7-a1b0-eabe4a45e1dg](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/6/c6914f8a9069e62e657870c4144f293082014c8e.jpeg)  
 ![img_v2_05c13808-f30b-4348-8933-47da199be04g](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/8/98d22d1fee7e9c800ff968877db620ef571aa941.jpeg)  
 ![img_v2_bbb4513f-0130-41a8-a76b-626cf0ac6d9g](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/a/fa85923405229b022c9966443bb82780a09b9573.jpeg)  
 ![img_v2_557a5c5d-a7ae-434e-8d98-fb84cead099g](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/a/9ab81d885cb72ee8a17dd61cf3474ee4bf4b2a7c.jpeg)

not recv onAuthenticationReturn callback.

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 5:00am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/4 "2023-09-14T05:00:55Z")

</div>

How can I achieve only pull streaming rawdata without render and no ui?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 5:16am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/5 "2023-09-14T05:16:13Z")

</div>

@617505352 , based on the code which you have shared, are you part of the beta testing group and recently updated from 5.14.5 to 5.15.2?

There are some updates to the interfaces when the versions updated. Did the compiler throw any error related to IAuthServiceEvent?

By default there is no UI for Meeting SDK Linux. If you are using the beta testing group’s sample app, the UI is only for demonstration and testing flow.

You will need to write something like this in your main method

1. initialise meeting SDK
2. authenticate meeting SDK

wait for authentication completed callback

1. Join Meeting
2. Start Raw Recording
3. Subscribe to user’s raw video and audio

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 5:34am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/6 "2023-09-14T05:34:22Z")

</div>

beta testing group?how can join it? there is no any error related to IAuthServiceEvent

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 5:53am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/7 "2023-09-14T05:53:04Z")

</div>

@617505352 , the sample code which you are running right now, was provided to the beta testing group couple of months ago.

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 6:01am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/8 "2023-09-14T06:01:46Z")

</div>

got it, how to solve the problem？update the sdk version or join beta testing group?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 6:17am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/9 "2023-09-14T06:17:27Z")

</div>

@617505352 ,

There is no more beta testing group.  
After getting this package, did you manually update the SDK to 5.15.12?

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 6:20am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/10 "2023-09-14T06:20:15Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/e/3e8b33bae1ebe230714e007307fa787875643733.png)  
yes.

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 6:27am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/11 "2023-09-14T06:27:41Z")

</div>

4，5 What are the corresponding api interfaces?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 6:34am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/12 "2023-09-14T06:34:03Z")

</div>

@617505352 , could you share how you upgraded the SDK?  
Sorry for being so specific, I want to make sure we cover the mandatory steps

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 6:44am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/13 "2023-09-14T06:44:43Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/5/05f7d79285309089b2ef946376555a29b7126140.png)  
1.down sdk from which picture show  
2 link the new libso ,actually the same code, windows is ok  
 ![img_v2_748844e9-07d9-4afb-bfd4-5c731902faeg](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/b/5ba0f41ee9537e10f352869b9015f300e543193b.jpeg)  
@chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 6:57am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/14 "2023-09-14T06:57:06Z")

</div>

@617505352 ,

how about the header files?

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 7:01am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/15 "2023-09-14T07:01:25Z")

</div>

![img_v2_650781e3-0ae2-4de1-ac3b-bc4b26b4a81g](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/7/a76f4a74f90f53473f4f12874827d6a20c99d3c0.jpeg)  
@chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 7:02am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/16 "2023-09-14T07:02:12Z")

</div>

@617505352 please tag me in your response.  
did you overwrite your existing h folder with the ones from the downloaded h holders?  
The header files from your previous version needs to be deleted and replace with the new headers

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 7:05am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/17 "2023-09-14T07:05:08Z")

</div>

I’m sure I got it, otherwise I’ll get a compilation error

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 7:06am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/18 "2023-09-14T07:06:37Z")

</div>

@617505352 please tag me in your response, if not I won’t get a notification and might not respond to future replies.

The implementation should have these 5

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/3/73216abd39e07c3b36af2d2c274e43d7b4239901.jpeg)

---

<div class="post-metadata">

**Author:** ![617505352](https://avatars.discourse-cdn.com/v4/letter/6/7c8e57/32.png) [@617505352](https://devforum.zoom.us/u/617505352)\
**Post date:** [September 14, 2023, 7:18am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/19 "2023-09-14T07:18:26Z")

</div>

these 5 has no one tigger

 ![img_v2_3b5eb18e-d3f4-4aa8-8d03-e35dcd0d2f1g](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/b/bb5a0ae2a6493360b30d15337fc745591de400f5.jpeg)  
the program run result :  
 ![img_v2_d4e61df9-940f-4a25-a780-608bd78a7bcg](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/3/839b899f49649441cd9c37fe79e6b0d67df2e5ec.jpeg)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 14, 2023, 7:46am UTC](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076/20 "2023-09-14T07:46:55Z")

</div>

@617505352 ,

I’ll try to explain how I’m getting this to work.

On my main thread, I have a method called AuthMeetingSDK.  
`m_pAuthService` is declared as `ZOOM_SDK_NAMESPACE::IAuthService* m_pAuthService;`  
There is a callback which I’ve declared called `OnAuthenticationComplete` on my main thread.

I’m using my own `AuthServiceEventListener` . I’ll share the .h & .cpp below

```auto
void OnAuthenticationComplete()

{

    if (isHeadless) {
    
    JoinMeeting(nullptr, nullptr, nullptr);
    
    }

}

```

```auto
void AuthMeetingSDK(Gtk::TextView* text_view)
{
	SDKError err(SDKError::SDKERR_SUCCESS);

	//create auth service
	if ((err = CreateAuthService(&m_pAuthService)) != SDKError::SDKERR_SUCCESS) {};
	std::cerr << "AuthService created." << std::endl;

	//Create a param to put in jwt token
	ZOOM_SDK_NAMESPACE::AuthContext param;

	//set the event listener for onauthenticationcompleted
	if ((err = m_pAuthService->SetEvent(new AuthServiceEventListener(&OnAuthenticationComplete))) != SDKError::SDKERR_SUCCESS) {};
	std::cout << "AuthServiceEventListener added." << std::endl;

	if (!token.size() == 0)
	{
		param.jwt_token = token.c_str();
		std::cerr << "AuthSDK:success " << std::endl;
	}

	//attempt to authenticate
	ZOOM_SDK_NAMESPACE::SDKError sdkErrorResult = m_pAuthService->SDKAuth(param);

	if (ZOOM_SDK_NAMESPACE::SDKERR_SUCCESS != sdkErrorResult)
	{
		if (text_view)
		{
			Glib::RefPtr<Gtk::TextBuffer> buffer = text_view->get_buffer();
			buffer->set_text("AuthSDK:error\n");
		}
		std::cerr << "AuthSDK:error " << std::endl;
	}
	else
	{
		if (text_view)
		{
			Glib::RefPtr<Gtk::TextBuffer> buffer = text_view->get_buffer();
			buffer->set_text("AuthSDK:success\n");
			std::cerr << "AuthSDK:success " << std::endl;
		}
	}
}

```

**AuthServiceEventListener.cpp**

```auto
#include "AuthServiceEventListener.h"
#include <iostream>

AuthServiceEventListener::AuthServiceEventListener(void(*onAuthSuccess)())
{
    
    onAuthSuccess_ = onAuthSuccess;
}

void AuthServiceEventListener::onAuthenticationReturn(ZOOM_SDK_NAMESPACE::AuthResult ret) {
    if (ret == ZOOM_SDK_NAMESPACE::AuthResult::AUTHRET_JWTTOKENWRONG)
    {
        // SDK Auth call failed because the JWT token is invalid.
       std::cout << "Auth failed: JWT Token is invalid." << std::endl;
    }
    else if (ret == ZOOM_SDK_NAMESPACE::AuthResult::AUTHRET_SUCCESS)
    {
        // SDK Authenticated successfully
        std::cout << "Auth succeeded: JWT." << std::endl;
          if (onAuthSuccess_) onAuthSuccess_();
    }
    else 
        std::cout << "Auth failed: " << ret << std::endl;
}

void AuthServiceEventListener::onLoginReturnWithReason(LOGINSTATUS ret, IAccountInfo* pAccountInfo, LoginFailReason reason)
{
    std::cout << "onLoginReturnWithReason: " << reason << std::endl;
  
}

void AuthServiceEventListener::onLogout()
{
    std::cout << "onLogout" << std::endl;
}

void AuthServiceEventListener::onZoomIdentityExpired()
{
    std::cout << "onZoomIdentityExpired" << std::endl;
}

void AuthServiceEventListener::onZoomAuthIdentityExpired()
{
    std::cout << "onZoomAuthIdentityExpired" << std::endl;
}

// void AuthServiceEventListener::onNotificationServiceStatus(SDKNotificationServiceStatus status)
// {
// std::cout << "onNotificationServiceStatus: " << status << std::endl;
// }

```

**AuthServiceEventListener.h**

```auto
#include "auth_service_interface.h"

USING_ZOOM_SDK_NAMESPACE

class AuthServiceEventListener : public IAuthServiceEvent
{
	
    	 void (*onAuthSuccess_)();
public:
    AuthServiceEventListener(void (*onAuthSuccess)());

    /// \brief Authentication result callback.
    /// \param ret Authentication result value. For more details, see \link AuthResult \endlink enum.
    virtual void onAuthenticationReturn(AuthResult ret);

	/// \brief Callback of login result with fail reason.
	/// \param ret Login status. see \link LOGINSTATUS \endlink enum.
	/// \param pAccountInfo Valid when the ret is LOGINRET_SUCCESS. Otherwise NULL.
	/// \param reason Login fail reason. Valid when the ret is LOGIN_FAILED. Otherwise LoginFail_None. see \link LoginFailReason \endlink enum.
	virtual void onLoginReturnWithReason(LOGINSTATUS ret, IAccountInfo* pAccountInfo, LoginFailReason reason);

	/// \brief Logout result callback.
	virtual void onLogout();

	/// \brief Zoom identity has expired, please re-login or generate a new zoom access token via REST Api.
	virtual void onZoomIdentityExpired();

	/// \brief Zoom authentication identity will be expired in 10 minutes, please re-auth.
	virtual void onZoomAuthIdentityExpired();

	// /// \brief Notification service status changed callback.
    // /// \param status The value of transfer meeting service. For more details, see \link SDKNotificationServiceStatus \endlink.
	// virtual void onNotificationServiceStatus(SDKNotificationServiceStatus status) ;
};

```

[Next page](https://devforum.zoom.us/t/linux-zoom-meeting-sdk-not-generating-authentication-return-callback-can-provide-a-sample-demo/95076.md?page=2)
