Skip to content

Commit 28afe02

Browse files
authored
Update secure-websocket-csharp.md
add definition of JWT
1 parent afa3f2e commit 28afe02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/communication-services/how-tos/call-automation/includes/secure-websocket-csharp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.author: kpunjabi
1313

1414
## Websocket code sample
1515

16-
This sample code demonstrates how to configure OIDC client to validate websocket payload using JWT
16+
This sample code demonstrates how to authenticate WebSocket connection requests using JSON Web Token (JWT) tokens.
1717

1818
```csharp
1919
// 1. Load OpenID Connect metadata
@@ -36,6 +36,7 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
3636
builder.Services.AddAuthorization();
3737

3838
var app = builder.Build();
39+
3940
// 3. Use authentication & authorization middleware
4041
app.UseAuthentication();
4142
app.UseAuthorization();

0 commit comments

Comments
 (0)