Skip to content

Commit 4f93fdd

Browse files
committed
Merge branch 'release/0.100.0'
2 parents 1ca925d + 8f36267 commit 4f93fdd

File tree

96 files changed

+3557
-850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3557
-850
lines changed

README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,9 @@ The last version of ZoomNet that supported `.NET 4.6.1`, `.NET 4.7.2` and `.NET
4040
## Usage
4141

4242
### Connection Information
43-
Before you start using the ZoomNet client, you must decide how you are going to connect to the Zoom API. ZoomNet supports three ways of connecting to Zoom: JWT, OAuth and Server-to-Server OAuth.
44-
45-
#### Connection using JWT
46-
This is the simplest way to connect to the Zoom API. Zoom expects you to use a key and a secret to generate a JSON object with a signed payload and to provide this JSON object with every API request. The good news is that ZoomNet takes care of the intricacies of generating this JSON object: you simply provide the key and the secret and ZoomNet takes care of the rest. Super easy!
47-
48-
As the Zoom documentation mentions, this is perfect `if you're looking to build an app that provides server-to-server interaction with Zoom APIs`.
49-
50-
Here is an except from the Zoom documentation that explains [how to get your API key and secret](https://marketplace.zoom.us/docs/guides/auth/jwt#key-secret):
51-
52-
> JWT apps provide an API Key and Secret required to authenticate with JWT. To access the API Key and Secret, Create a JWT App on the Marketplace. After providing basic information about your app, locate your API Key and Secret in the App Credentials page.
53-
54-
When you have the API key and secret, you can instantiate a 'connection info' object like so:
55-
```csharp
56-
var apiKey = "... your API key ...";
57-
var apiSecret = "... your API secret ...";
58-
var connectionInfo = new JwtConnectionInfo(apiKey, apiSecret);
59-
var zoomClient = new ZoomClient(connectionInfo);
60-
```
61-
62-
> **Warning:** <a href="https://marketplace.zoom.us/docs/guides/build/jwt-app/jwt-faq/">Zoom has announced</a> that this authentication method would be obsolete in June 2023. The recommendation is to swith to Server-to-Server OAuth.
43+
Before you start using the ZoomNet client, you must decide how you are going to connect to the Zoom API. ZoomNet supports thwo ways of connecting to Zoom: OAuth and Server-to-Server OAuth.
6344

6445
#### Connection using OAuth (General App)
65-
Using OAuth is much more complicated than using JWT but at the same time, it is more flexible because you can define which permissions your app requires. When a user installs your app, they are presented with the list of permissions your app requires and they are given the opportunity to accept.
66-
6746
The Zoom documentation has a document about [how to create an OAuth app](https://marketplace.zoom.us/docs/guides/build/oauth-app) and another document about the [OAuth autorization flow](https://marketplace.zoom.us/docs/guides/auth/oauth) but I personnality was very confused by the later document so here is a brief step-by-step summary:
6847
- you create an OAuth app, define which permissions your app requires and publish the app to the Zoom marketplace.
6948
- user installs your app. During installation, user is presented with a screen listing the permissons your app requires. User must click `accept`.
@@ -124,8 +103,6 @@ var zoomClient = new ZoomClient(connectionInfo);
124103

125104
#### Connection using Server-to-Server OAuth
126105

127-
This authentication method is the replacement for JWT authentication which Zoom announced will be made obsolete in June 2023.
128-
129106
From Zoom's documentation:
130107
> A Server-to-Server OAuth app enables you to securely integrate with Zoom APIs and get your account owner access token without user interaction. This is different from the OAuth app type, which requires user authentication. See Using OAuth 2.0 for details.
131108

Source/ZoomNet.IntegrationTests/Program.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,6 @@ private static string GetThisFilePath([CallerFilePath] string path = null)
244244

245245
private static IConnectionInfo GetConnectionInfo(ConnectionType connectionType, TestType testType)
246246
{
247-
// Jwt
248-
if (connectionType == ConnectionType.Jwt)
249-
{
250-
var apiKey = Environment.GetEnvironmentVariable("ZOOM_JWT_APIKEY", EnvironmentVariableTarget.User);
251-
var apiSecret = Environment.GetEnvironmentVariable("ZOOM_JWT_APISECRET", EnvironmentVariableTarget.User);
252-
return new JwtConnectionInfo(apiKey, apiSecret);
253-
}
254-
255-
// OAuth
256247
var clientIdVariableName = testType == TestType.Chatbot ? "ZOOM_CHATBOT_CLIENTID" : "ZOOM_OAUTH_CLIENTID";
257248
var clientSecretVariableName = testType == TestType.Chatbot ? "ZOOM_CHATBOT_CLIENTSECRET" : "ZOOM_OAUTH_CLIENTSECRET";
258249

Source/ZoomNet.IntegrationTests/ZoomNet.IntegrationTests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
1919
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.0" />
2020
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.0" />
21-
<PackageReference Include="System.Text.Json" Version="10.0.0" />
2221
</ItemGroup>
2322

2423
<ItemGroup>

0 commit comments

Comments
 (0)