We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afa3f2e commit 28afe02Copy full SHA for 28afe02
articles/communication-services/how-tos/call-automation/includes/secure-websocket-csharp.md
@@ -13,7 +13,7 @@ ms.author: kpunjabi
13
14
## Websocket code sample
15
16
-This sample code demonstrates how to configure OIDC client to validate websocket payload using JWT
+This sample code demonstrates how to authenticate WebSocket connection requests using JSON Web Token (JWT) tokens.
17
18
```csharp
19
// 1. Load OpenID Connect metadata
@@ -36,6 +36,7 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
36
builder.Services.AddAuthorization();
37
38
var app = builder.Build();
39
+
40
// 3. Use authentication & authorization middleware
41
app.UseAuthentication();
42
app.UseAuthorization();
0 commit comments