Replies: 5 comments 8 replies
-
So I found that I get the AccessToken by using the OAuthConnectionInfo method - I think.
But, it's not falling into the onTokenRefreshed delegate and connectionInfo shows a null value for the AccessToken and RefreshToken properties. Am I off base? |
Beta Was this translation helpful? Give feedback.
-
You are not the first person to ask. Therefore I am assuming that the instructions on how to use OAuth (and Server-to-Server OAuth which is the replacement for JWT) are not clear. The short answer is that ZoomNet is designed to hide the complexities of OAuth. It takes care of converting an authorization code into an access token, getting a token, renewing the token when it expires, etc. From the instructions about using OAuth:
and from the Server-to-Server instructions:
Let me know what I could change to improve the instructions. |
Beta Was this translation helpful? Give feedback.
-
The part missing in the instructions is how do you pass the Authorization Code Zoom sends after the user authorizes, to ZoomNet to get the access token. In the instructions, there is a bullet/step that says "Zoom generates an authorization code....", and then it goes on to say the access token is valid for 60 minutes. The next paragraph says that ZoomNet takes care of generating the access token., followed by a block of code. However that code, to me, looks like something you execute after you have exchanged the Authorization Code to get an Access and Refresh token. There's nothing in there about the authorization code. Do I have to call Zoom's API to do the exchange or can ZoomNet handle that? |
Beta Was this translation helpful? Give feedback.
-
I read those instructions, but I think where the disconnect is that there is no code showing how to pass in the initial authorization token.
I understand that behind the scenes ZoomNet is handling the access/refresh sequence, but in the example code just after the line that says ZoomNet takes care of generating the access token and the refresh token but it's your responsability to store these generated values.
The sample code doesn't show the authorization code being passed into ZoomNet. It says ".. the access token previously issued by Zoom". That's the piece that I'm looking for - how do you pass in that initial authorization code and let ZoomNet take it from there.
|
Beta Was this translation helpful? Give feedback.
-
I am getting above error. Can you please help me figure this out? |
Beta Was this translation helpful? Give feedback.
-
Switching our code from JWT to OAUTH.
Is there a method in the ZoomNet library to exchange an Authorization Code for an Access Token? Following that, is there a method to refresh the token?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions