AuthenticationHelpers/EasyAuthAuthenticationBuilderExtensions.cs

data-api-builder · src/Core/AuthenticationHelpers/EasyAuthAuthenticationBuilderExtensions.cs · csharp · MIT
auth

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

// Source: https://github.com/Azure/data-api-builder | License: MIT | Copyright Microsoft Corporation
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Azure.DataApiBuilder.Config.ObjectModel;
using Microsoft.AspNetCore.Authentication;

namespace Azure.DataApiBuilder.Core.AuthenticationHelpers;

/// <summary>
/// Extension methods related to Static Web App/ App Service authentication (Easy Auth).
/// This class allows setting up Easy Auth authentication in the startup class with
/// a single call to .AddAuthentication(scheme).AddStaticWebAppAuthentication()
/// </summary>
public static class EasyAuthAuthenticationBuilderExtensions
{
    /// <summary>
    /// Add authentication with Static Web A

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key