Skip to content

Commit 582f2ec

Browse files
Rageking8gewarren
andauthored
Fix JsonWebToken typo (#38327)
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
1 parent b2efce9 commit 582f2ec

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/core/compatibility/8.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you're migrating an app to .NET 8, the breaking changes listed here might aff
2323
| [Custom converters for serialization removed](aspnet-core/8.0/problemdetails-custom-converters.md) | Behavioral change |
2424
| [ISystemClock is obsolete](aspnet-core/8.0/isystemclock-obsolete.md) | Source incompatible |
2525
| [Rate-limiting middleware requires AddRateLimiter](aspnet-core/8.0/addratelimiter-requirement.md) | Behavioral change |
26-
| [Security token events return a JSonWebToken](aspnet-core/8.0/securitytoken-events.md) | Behavioral change |
26+
| [Security token events return a JsonWebToken](aspnet-core/8.0/securitytoken-events.md) | Behavioral change |
2727
| [TrimMode defaults to full for Web SDK projects](aspnet-core/8.0/trimmode-full.md) | Source incompatible |
2828

2929
## Containers

docs/core/compatibility/aspnet-core/8.0/securitytoken-events.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: "Breaking change: Security token events return a JSonWebToken"
3-
description: Learn about the breaking change in ASP.NET Core 8.0 where the JwtBearer, WsFederation, and OpenIdConnect events context properties of type 'SecurityToken' now return a 'JSonWebToken' by default.
2+
title: "Breaking change: Security token events return a JsonWebToken"
3+
description: Learn about the breaking change in ASP.NET Core 8.0 where the JwtBearer, WsFederation, and OpenIdConnect events context properties of type 'SecurityToken' now return a 'JsonWebToken' by default.
44
ms.date: 07/31/2023
55
---
6-
# Security token events return a JSonWebToken
6+
# Security token events return a JsonWebToken
77

88
The <xref:Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents>, <xref:Microsoft.AspNetCore.Authentication.WsFederation.WsFederationEvents>, and <xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents> events are authentication events fired respectively by the [JwtBearer](xref:Microsoft.AspNetCore.Authentication.JwtBearer), [WsFederation](xref:Microsoft.AspNetCore.Authentication.WsFederation), and [OpenIdConnect](xref:Microsoft.AspNetCore.Authentication.OpenIdConnect) authentication handlers. For example, the <xref:Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.OnTokenValidated> event is fired when a security token is validated. These events are fired with a context (for example, <xref:Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext>) that exposes a <xref:Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext.SecurityToken?displayProperty=nameWithType> property of abstract type <xref:System.IdentityModel.Tokens.SecurityToken>. The default real implementation of <xref:Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext.SecurityToken?displayProperty=nameWithType> changed from <xref:System.IdentityModel.Tokens.Jwt.JwtSecurityToken> to <xref:Microsoft.IdentityModel.JsonWebTokens.JsonWebToken>.
99

@@ -37,7 +37,7 @@ For most users, this change shouldn't be a problem as the type of the properties
3737

3838
However, if you were down-casting one of the affected `SecurityToken` properties to `JwtSecurityToken` (for example, to get the claims), you have two options:
3939

40-
- Down-cast the property to `JSonWebToken`:
40+
- Down-cast the property to `JsonWebToken`:
4141

4242
```csharp
4343
service.Configure<JwtBearerOptions>(JwtBearerDefaults.AuthenticationScheme, options => {

docs/core/compatibility/toc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ items:
1818
href: aspnet-core/8.0/isystemclock-obsolete.md
1919
- name: Rate-limiting middleware requires AddRateLimiter
2020
href: aspnet-core/8.0/addratelimiter-requirement.md
21-
- name: Security token events return a JSonWebToken
21+
- name: Security token events return a JsonWebToken
2222
href: aspnet-core/8.0/securitytoken-events.md
2323
- name: TrimMode defaults to full for Web SDK projects
2424
href: aspnet-core/8.0/trimmode-full.md
@@ -884,7 +884,7 @@ items:
884884
href: aspnet-core/8.0/isystemclock-obsolete.md
885885
- name: Rate-limiting middleware requires AddRateLimiter
886886
href: aspnet-core/8.0/addratelimiter-requirement.md
887-
- name: Security token events return a JSonWebToken
887+
- name: Security token events return a JsonWebToken
888888
href: aspnet-core/8.0/securitytoken-events.md
889889
- name: TrimMode defaults to full for Web SDK projects
890890
href: aspnet-core/8.0/trimmode-full.md

docs/whats-new/dotnet-docs-mod2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Welcome to what's new in the .NET docs for August 2023. This article lists some
2323
- [Boolean-backed enum type support removed](../core/compatibility/core-libraries/8.0/bool-backed-enum.md)
2424
- [Binding config to dictionary extends values](../core/compatibility/extensions/7.0/config-bind-dictionary.md)
2525
- ['ca-certificates' and 'krb5-libs' packages removed from Alpine images](../core/compatibility/containers/8.0/krb5-libs-package.md)
26-
- [Security token events return a JSonWebToken](../core/compatibility/aspnet-core/8.0/securitytoken-events.md)
26+
- [Security token events return a JsonWebToken](../core/compatibility/aspnet-core/8.0/securitytoken-events.md)
2727
- [TrimMode defaults to full for Web SDK projects](../core/compatibility/aspnet-core/8.0/trimmode-full.md)
2828

2929
## .NET Framework

0 commit comments

Comments
 (0)