Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/OAuth/OAuthEndpoints.cs
blob: fa6409cc8d7194a23a185495e2b93e4a6c8e03e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1

using Progmasoft.OAuth.Developers;
using Progmasoft.OAuth.Endpoints;
using Progmasoft.OAuth.Pages;

namespace Progmasoft.OAuth;

/// <summary>Maps every page and endpoint of Progmasoft OAuth.</summary>
internal static class OAuthEndpoints
{
    /// <summary>Maps the pages and endpoints. <see cref="OAuthHostFilter"/> keeps them on the OAuth host.</summary>
    /// <param name="app">The application.</param>
    public static void MapProgmasoftOAuth(this WebApplication app)
    {
        app.MapSignInPages();
        app.MapAuthorizationEndpoints();
        app.MapDeveloperPortal();
        app.MapAllowedApplications();
    }
}