Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

AspNetCoreHybridFlowWithApi

> 安全
Open source

Different ASP.NET Core applications using OpenID Connect Hybrid flow Code Flow, Code Flow with PKCE, JWT APIs, MFA examples

378 stars0 likes0 views
WebsiteGitHub

About

Different ASP.NET Core applications using OpenID Connect Hybrid flow Code Flow, Code Flow with PKCE, JWT APIs, MFA examples

Blogs:

  • Securing an ASP.NET Core MVC application which uses a secure API
  • Handling Access Tokens for private APIs in ASP.NET Core
  • Adding HTTP Headers to improve Security in an ASP.NET MVC Core application
  • ASP.NET Core OAuth Device Flow Client with IdentityServer4
  • Securing an ASP.NET Core Razor Page App using OpenID Connect Code flow with PKCE
  • Force ASP.NET Core OpenID Connect client to require MFA
  • Send MFA signin requirement to OpenID Connect server using ASP.NET Core Identity and IdentityServer4
  • Requiring MFA for Admin Pages in an ASP.NET Core Identity application
  • Require user password verification with ASP.NET Core Identity to access Razor Page

Database migrations

Add-Migration InitialCreate -c ApplicationDbContext
Update-Database

History

  • 2025-11-30 .NET 10
  • 2025-08-03 Updated packages
  • 2025-02-04 Updated packages
  • 2024-11-12 .NET 9
  • 2024-11-12 Updated packages
  • 2024-10-05 Updated packages and security headers
  • 2024-09-17 Updated packages
  • 2024-08-14 Updated packages
  • 2024-04-29 Updated packages
  • 2024-04-04 Updated packages
  • 2024-01-28 Updated packages
  • 2024-01-14 Updated packages
  • 2023-11-17 Updated to .NET 8
  • 2023-11-03 Updated packages, fix security headers
  • 2023-09-22 Updated packages, switch to code flow with PKCE
  • 2023-08-18 Updated packages, updated start up, updated Duende IdentityServer
  • 2023-05-07 Updated packages
  • 2022-12-17 Updated packages to .NET 7
  • 2022-10-22 Updated packages
  • 2022-05-20 Updated packages
  • 2022-04-02 Updated packages, moved to nullable, some .NET 6 code styles
  • 2022-02-10 Updated namespaces
  • 2022-01-28 Updated packages
  • 2021-11-08 Update .NET 6 release
  • 2021-11-07 Update .NET 6
  • 2021-11-06 Update .NET 5
  • 2021-08-19 improved security headers
  • 2021-08-18 Updated packages, improved security headers STS
  • 2021-05-28 Updated packages, added example for IClaimsTransformation
  • 2021-05-15 Updated packages, fix identity email bug
  • 2021-04-17 Updated nuget packages, improving API calls
  • 2021-03-17 Updated nuget packages
  • 2021-03-05 Updated nuget packages
  • 2021-02-25 Updated nuget packages, small clean up
  • 2021-02-17 Updated nuget packages
  • 2021-01-19 Switching to Azure.Extensions.AspNetCore.Configuration.Secrets
  • 2021-01-17 Updated nuget packages .NET 5.0.2
  • 2020-12-11 Updated to .NET 5
  • 2020-11-08 Added swagger to the API, moved to Azure.Security.KeyVault.Secrets
  • 2020-11-06 Updated nuget packages, npm packages
  • 2020-08-23 Updated nuget packages
  • 2020-07-03 Update IdentityServer4 to V4, Updated nuget packages, update npm packages
  • 2020-05-03 Updated nuget packages
  • 2020-03-02 Support FIDO2 and updated nuget packages
  • 2020-01-03 Added ASP.NET Core Identity App with MFA force
  • 2019-12-18 Added STS acr_values parameters logic
  • 2019-12-14 Added Require MFA client
  • 2019-12-13 Updated to .NET Core 3.1
  • 2019-10-11 Added example of Code Flow with PKCE for ASP.NET Core Razor Page App
  • 2019-10-06 Updated to .NET Core 3.0
  • 2019-05-10 Improving token handling
  • 2019-04-30 Switch to in-process, add token expired check, Updating nuget packages, updating npm packages
  • 2019-02-24 Updating obsolete API call code, updating npm packages
  • 2019-02-20 Updating STS, added the OAuth Device Flow
  • 2018-11-11 Updating Nuget packages, added feauture-policy
  • 2018-11-10 Updated to .NET Core 2.2
  • 2018-08-03 Updated to .NET Core 2.1.2
  • 2018-05-08 Updated to .NET Core 2.1 rc1
  • 2018-05-07 Updated to .NET Core 2.1 preview 2, new Identity Views, 2FA Authenticator, IHttpClientFactory, bootstrap 4.1.0

Links

https://github.com/aspnet/Docs/tree/master/aspnetcore/security/authentication/cookie/samples/2.x/CookieSample

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-2.2

https://leastprivilege.com/2019/02/08/try-device-flow-with-identityserver4/

https://tools.ietf.org/wg/oauth/draft-ietf-oauth-device-flow/

https://github.com/leastprivilege/AspNetCoreSecuritySamples/tree/aspnetcore21/DeviceFlow

https://hajekj.net/2017/03/06/forcing-reauthentication-with-azure-ad/

https://tools.ietf.org/html/draft-ietf-oauth-amr-values-04

https://openid.net/specs/openid-connect-core-1_0.html

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#asp-net-coreasp-net-mvchybrid-flowjwt

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.