Skip to content

Commit

Permalink
Restore API cross-links (#29473)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Jun 8, 2023
1 parent beb97b0 commit 3f0b609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,7 @@ The **:::no-loc text="Server":::** app of a hosted Blazor solution created from

*This section pertains to the solution's **:::no-loc text="Server":::** app.*

<!-- HOLD
The following API cross-link broke, but the API still exists and is used in an 8.0 app. This is tracked by the project tracking issue: https://github.com/dotnet/AspNetCore.Docs/issues/28001
<xref:Microsoft.Identity.Web.MicrosoftIdentityWebApiAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApi%2A>
-->

The `AddAuthentication` method sets up authentication services within the app and configures the JWT Bearer handler as the default authentication method. The `AddMicrosoftIdentityWebApi` method configures services to protect the web API with Microsoft Identity Platform v2.0. This method expects an `AzureAdB2C` section in the app's configuration with the necessary settings to initialize authentication options.
The `AddAuthentication` method sets up authentication services within the app and configures the JWT Bearer handler as the default authentication method. The <xref:Microsoft.Identity.Web.MicrosoftIdentityWebApiAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApi%2A> method configures services to protect the web API with Microsoft Identity Platform v2.0. This method expects an `AzureAdB2C` section in the app's configuration with the necessary settings to initialize authentication options.

```csharp
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,7 @@ The **:::no-loc text="Server":::** app of a hosted Blazor solution created from

*This section pertains to the solution's **:::no-loc text="Server":::** app.*

<!-- HOLD
The following API cross-link broke, but the API still exists and is used in an 8.0 app. This is tracked by the project tracking issue: https://github.com/dotnet/AspNetCore.Docs/issues/28001
<xref:Microsoft.Identity.Web.MicrosoftIdentityWebApiAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApi%2A>
-->

The `AddAuthentication` method sets up authentication services within the app and configures the JWT Bearer handler as the default authentication method. The `AddMicrosoftIdentityWebApi` method configures services to protect the web API with Microsoft Identity Platform v2.0. This method expects an `AzureAd` section in the app's configuration with the necessary settings to initialize authentication options.
The `AddAuthentication` method sets up authentication services within the app and configures the JWT Bearer handler as the default authentication method. The <xref:Microsoft.Identity.Web.MicrosoftIdentityWebApiAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApi%2A> method configures services to protect the web API with Microsoft Identity Platform v2.0. This method expects an `AzureAd` section in the app's configuration with the necessary settings to initialize authentication options.

```csharp
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
Expand Down

0 comments on commit 3f0b609

Please sign in to comment.