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

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/Program.cs
diff options
context:
space:
mode:
authorLeitwolf2026-10-23 11:29:19 +0300
committerGitHub2026-10-23 11:29:19 +0300
commitba89b398976f4429338673afc1b6e961e995089f (patch)
treece178c734f82acf467e1d9052c13ee54b323c164 /apps/api/Program.cs
parent3481b5fe411fb3aa5898b0965e42cc852f3d690c (diff)
parent06dfa204e4a65c535eb9b3d775a77b5d14522060 (diff)
downloadprogmaweb-ba89b398976f4429338673afc1b6e961e995089f.tar.gz
Merge pull request #45 from Progmasoft/feature/oauth-application-types
Move the OAuth pages to Next.js; split authorize.progmasoft.com and the Progmasoft Console
Diffstat (limited to 'apps/api/Program.cs')
-rw-r--r--apps/api/Program.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/api/Program.cs b/apps/api/Program.cs
index aeeff29..476cbdb 100644
--- a/apps/api/Program.cs
+++ b/apps/api/Program.cs
@@ -118,6 +118,8 @@ app.UseHttpsRedirection();
app.UseMiddleware<SecurityHeadersMiddleware>();
// Before authentication, where OpenIddict answers its own endpoints: OAuth only on its host, and nothing else there.
app.UseMiddleware<OAuthHostFilter>();
+// Single-page applications call the token endpoints from the browser; see OAuth/Api/OAuthCors.cs.
+app.UseMiddleware<Progmasoft.OAuth.Api.OAuthCors>();
app.UseAuthentication();
app.UseAuthorization();
app.UseRateLimiter();