├── src
├── Frontend_Identity
│ ├── README.md
│ ├── src
│ │ ├── assets
│ │ │ ├── css
│ │ │ │ └── style.css
│ │ │ ├── images
│ │ │ │ ├── favicon.ico
│ │ │ │ ├── logo
│ │ │ │ │ ├── logo.png
│ │ │ │ │ ├── logo-icon.svg
│ │ │ │ │ └── logo.svg
│ │ │ │ └── user
│ │ │ │ │ └── user.png
│ │ │ └── svg
│ │ │ │ ├── delete.svg
│ │ │ │ ├── edit.svg
│ │ │ │ ├── reset_password.svg
│ │ │ │ └── save.svg
│ │ ├── helpers
│ │ │ ├── emitter.ts
│ │ │ └── ViteEnv.ts
│ │ ├── views
│ │ │ └── HomeView.vue
│ │ ├── types
│ │ │ └── env.d.ts
│ │ ├── main.ts
│ │ └── router
│ │ │ └── index.ts
│ ├── env.d.ts
│ ├── .env.production
│ ├── .env.development
│ ├── public
│ │ ├── favicon.ico
│ │ └── login.html
│ ├── postcss.config.js
│ ├── .vscode
│ │ └── extensions.json
│ ├── .prettierrc.json
│ ├── tsconfig.app.json
│ ├── buildExt.js
│ ├── .eslintrc.cjs
│ ├── tsconfig.node.json
│ ├── .gitignore
│ ├── index.html
│ ├── vite.config.ts
│ ├── tailwind.config.js
│ └── tsconfig.json
└── MiniAuth.IdentityAuth
│ ├── icon.png
│ ├── minisoftware.snk
│ ├── wwwroot
│ ├── favicon.ico
│ ├── assets
│ │ ├── favicon-nEFMWCT0.ico
│ │ ├── UsersView-Hpoy62lu.css
│ │ └── EndpointsView-M0wP4A-_.js
│ ├── index.html
│ └── login.html
│ ├── Models
│ ├── RefreshRequest.cs
│ ├── LoginRequest.cs
│ ├── ResponseVo.cs
│ └── RoleEndpointEntity.cs
│ ├── MiniAuthIdentityDbContext.cs
│ ├── Helpers
│ └── JsonHelper.cs
│ └── MiniAuthStartupFilter.cs
├── README.es.md
├── README.jp.md
├── README.zh-Hant.md
├── tests
├── TestMVC5
│ └── TestMVC5
│ │ ├── Views
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── Home
│ │ │ ├── Privacy.cshtml
│ │ │ └── Index.cshtml
│ │ └── Shared
│ │ │ ├── _ValidationScriptsPartial.cshtml
│ │ │ ├── Error.cshtml
│ │ │ └── _LoginPartial.cshtml
│ │ ├── Areas
│ │ └── Identity
│ │ │ └── Pages
│ │ │ └── _ViewStart.cshtml
│ │ ├── wwwroot
│ │ ├── favicon.ico
│ │ ├── js
│ │ │ └── site.js
│ │ └── lib
│ │ │ ├── jquery-validation-unobtrusive
│ │ │ └── LICENSE.txt
│ │ │ ├── jquery-validation
│ │ │ └── LICENSE.md
│ │ │ └── bootstrap
│ │ │ └── LICENSE
│ │ ├── Properties
│ │ ├── serviceDependencies.json
│ │ ├── serviceDependencies.local.json
│ │ └── launchSettings.json
│ │ ├── appsettings.Development.json
│ │ ├── Models
│ │ └── ErrorViewModel.cs
│ │ ├── appsettings.json
│ │ ├── Data
│ │ └── ApplicationDbContext.cs
│ │ ├── Program.cs
│ │ ├── TestMVC5.csproj
│ │ └── Controllers
│ │ └── HomeController.cs
├── TestMVCCore3
│ └── TestMVCCore3
│ │ ├── Views
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── Home
│ │ │ ├── Privacy.cshtml
│ │ │ └── Index.cshtml
│ │ └── Shared
│ │ │ ├── _ValidationScriptsPartial.cshtml
│ │ │ ├── Error.cshtml
│ │ │ └── _LoginPartial.cshtml
│ │ ├── Areas
│ │ └── Identity
│ │ │ └── Pages
│ │ │ └── _ViewStart.cshtml
│ │ ├── wwwroot
│ │ ├── favicon.ico
│ │ ├── js
│ │ │ └── site.js
│ │ └── lib
│ │ │ ├── jquery-validation-unobtrusive
│ │ │ └── LICENSE.txt
│ │ │ ├── jquery-validation
│ │ │ └── LICENSE.md
│ │ │ └── bootstrap
│ │ │ └── LICENSE
│ │ ├── Properties
│ │ ├── serviceDependencies.json
│ │ ├── serviceDependencies.local.json
│ │ └── launchSettings.json
│ │ ├── appsettings.Development.json
│ │ ├── Models
│ │ └── ErrorViewModel.cs
│ │ ├── appsettings.json
│ │ ├── Data
│ │ └── ApplicationDbContext.cs
│ │ ├── Program.cs
│ │ ├── TestMVCCore3.csproj
│ │ └── Controllers
│ │ └── HomeController.cs
├── AspNetCoreIdentity
│ ├── AspNetCoreIdentity
│ │ ├── Views
│ │ │ ├── _ViewStart.cshtml
│ │ │ ├── _ViewImports.cshtml
│ │ │ ├── Home
│ │ │ │ ├── Privacy.cshtml
│ │ │ │ └── Index.cshtml
│ │ │ └── Shared
│ │ │ │ ├── _ValidationScriptsPartial.cshtml
│ │ │ │ ├── Error.cshtml
│ │ │ │ ├── _LoginPartial.cshtml
│ │ │ │ └── _Layout.cshtml.css
│ │ ├── Areas
│ │ │ └── Identity
│ │ │ │ └── Pages
│ │ │ │ ├── Account
│ │ │ │ ├── _ViewImports.cshtml
│ │ │ │ ├── Manage
│ │ │ │ │ ├── _ViewImports.cshtml
│ │ │ │ │ ├── DownloadPersonalData.cshtml
│ │ │ │ │ ├── _StatusMessage.cshtml
│ │ │ │ │ ├── _Layout.cshtml
│ │ │ │ │ ├── Disable2fa.cshtml
│ │ │ │ │ ├── ShowRecoveryCodes.cshtml
│ │ │ │ │ ├── PersonalData.cshtml
│ │ │ │ │ ├── ResetAuthenticator.cshtml
│ │ │ │ │ ├── GenerateRecoveryCodes.cshtml
│ │ │ │ │ ├── _ManageNav.cshtml
│ │ │ │ │ ├── PersonalData.cshtml.cs
│ │ │ │ │ ├── DeletePersonalData.cshtml
│ │ │ │ │ └── Index.cshtml
│ │ │ │ ├── ConfirmEmail.cshtml
│ │ │ │ ├── ConfirmEmailChange.cshtml
│ │ │ │ ├── ForgotPasswordConfirmation.cshtml
│ │ │ │ ├── AccessDenied.cshtml
│ │ │ │ ├── Lockout.cshtml
│ │ │ │ ├── ResetPasswordConfirmation.cshtml
│ │ │ │ ├── _StatusMessage.cshtml
│ │ │ │ ├── Logout.cshtml
│ │ │ │ ├── RegisterConfirmation.cshtml
│ │ │ │ ├── AccessDenied.cshtml.cs
│ │ │ │ ├── ResendEmailConfirmation.cshtml
│ │ │ │ ├── ForgotPassword.cshtml
│ │ │ │ ├── Lockout.cshtml.cs
│ │ │ │ ├── ForgotPasswordConfirmation.cshtml.cs
│ │ │ │ ├── ResetPasswordConfirmation.cshtml.cs
│ │ │ │ └── LoginWithRecoveryCode.cshtml
│ │ │ │ ├── _ViewStart.cshtml
│ │ │ │ ├── _ViewImports.cshtml
│ │ │ │ ├── Error.cshtml
│ │ │ │ └── _ValidationScriptsPartial.cshtml
│ │ ├── wwwroot
│ │ │ ├── favicon.ico
│ │ │ ├── js
│ │ │ │ └── site.js
│ │ │ ├── css
│ │ │ │ └── site.css
│ │ │ └── lib
│ │ │ │ ├── jquery
│ │ │ │ └── LICENSE.txt
│ │ │ │ ├── jquery-validation
│ │ │ │ └── LICENSE.md
│ │ │ │ ├── bootstrap
│ │ │ │ └── LICENSE
│ │ │ │ └── jquery-validation-unobtrusive
│ │ │ │ └── LICENSE.txt
│ │ ├── appsettings.Development.json
│ │ ├── Properties
│ │ │ ├── serviceDependencies.json
│ │ │ ├── serviceDependencies.local.json
│ │ │ └── launchSettings.json
│ │ ├── Models
│ │ │ └── ErrorViewModel.cs
│ │ ├── Data
│ │ │ └── ApplicationDbContext.cs
│ │ ├── appsettings.json
│ │ ├── Controllers
│ │ │ └── HomeController.cs
│ │ └── AspNetCoreIdentity.csproj
│ └── AspNetCoreIdentity.sln
├── TestMVCWithCookieIdentity
│ └── TestMVCWithCookieIdentity
│ │ ├── Views
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── Home
│ │ │ ├── Privacy.cshtml
│ │ │ └── Index.cshtml
│ │ └── Shared
│ │ │ ├── _ValidationScriptsPartial.cshtml
│ │ │ ├── Error.cshtml
│ │ │ ├── _LoginPartial.cshtml
│ │ │ └── _Layout.cshtml.css
│ │ ├── Areas
│ │ └── Identity
│ │ │ └── Pages
│ │ │ ├── _ViewStart.cshtml
│ │ │ ├── Account
│ │ │ ├── _ViewImports.cshtml
│ │ │ ├── Manage
│ │ │ │ ├── _ViewImports.cshtml
│ │ │ │ ├── DownloadPersonalData.cshtml
│ │ │ │ ├── _StatusMessage.cshtml
│ │ │ │ ├── _Layout.cshtml
│ │ │ │ ├── Disable2fa.cshtml
│ │ │ │ ├── ShowRecoveryCodes.cshtml
│ │ │ │ ├── PersonalData.cshtml
│ │ │ │ ├── ResetAuthenticator.cshtml
│ │ │ │ ├── GenerateRecoveryCodes.cshtml
│ │ │ │ ├── _ManageNav.cshtml
│ │ │ │ ├── PersonalData.cshtml.cs
│ │ │ │ ├── DeletePersonalData.cshtml
│ │ │ │ └── Index.cshtml
│ │ │ ├── ConfirmEmail.cshtml
│ │ │ ├── ConfirmEmailChange.cshtml
│ │ │ ├── ForgotPasswordConfirmation.cshtml
│ │ │ ├── AccessDenied.cshtml
│ │ │ ├── Lockout.cshtml
│ │ │ ├── ResetPasswordConfirmation.cshtml
│ │ │ ├── _StatusMessage.cshtml
│ │ │ ├── Logout.cshtml
│ │ │ ├── RegisterConfirmation.cshtml
│ │ │ ├── AccessDenied.cshtml.cs
│ │ │ ├── ResendEmailConfirmation.cshtml
│ │ │ ├── ForgotPassword.cshtml
│ │ │ ├── Lockout.cshtml.cs
│ │ │ ├── ForgotPasswordConfirmation.cshtml.cs
│ │ │ ├── ResetPasswordConfirmation.cshtml.cs
│ │ │ └── LoginWithRecoveryCode.cshtml
│ │ │ ├── _ViewImports.cshtml
│ │ │ ├── Error.cshtml
│ │ │ └── _ValidationScriptsPartial.cshtml
│ │ ├── wwwroot
│ │ ├── favicon.ico
│ │ ├── js
│ │ │ └── site.js
│ │ ├── css
│ │ │ └── site.css
│ │ └── lib
│ │ │ ├── jquery
│ │ │ └── LICENSE.txt
│ │ │ ├── jquery-validation
│ │ │ └── LICENSE.md
│ │ │ ├── bootstrap
│ │ │ └── LICENSE
│ │ │ └── jquery-validation-unobtrusive
│ │ │ └── LICENSE.txt
│ │ ├── appsettings.Development.json
│ │ ├── Properties
│ │ ├── serviceDependencies.json
│ │ ├── serviceDependencies.local.json
│ │ └── launchSettings.json
│ │ ├── Models
│ │ └── ErrorViewModel.cs
│ │ ├── Data
│ │ └── ApplicationDbContext.cs
│ │ └── appsettings.json
├── BlazorApp
│ └── BlazorApp
│ │ ├── BlazorApp
│ │ ├── Components
│ │ │ ├── Account
│ │ │ │ ├── Pages
│ │ │ │ │ ├── _Imports.razor
│ │ │ │ │ ├── Manage
│ │ │ │ │ │ ├── _Imports.razor
│ │ │ │ │ │ └── PersonalData.razor
│ │ │ │ │ ├── InvalidUser.razor
│ │ │ │ │ ├── InvalidPasswordReset.razor
│ │ │ │ │ ├── ForgotPasswordConfirmation.razor
│ │ │ │ │ ├── Lockout.razor
│ │ │ │ │ └── ResetPasswordConfirmation.razor
│ │ │ │ ├── Shared
│ │ │ │ │ ├── ManageLayout.razor
│ │ │ │ │ ├── ShowRecoveryCodes.razor
│ │ │ │ │ ├── AccountLayout.razor
│ │ │ │ │ ├── StatusMessage.razor
│ │ │ │ │ └── ManageNavMenu.razor
│ │ │ │ ├── IdentityUserAccessor.cs
│ │ │ │ └── IdentityNoOpEmailSender.cs
│ │ │ ├── Pages
│ │ │ │ ├── Home.razor
│ │ │ │ └── Error.razor
│ │ │ ├── Routes.razor
│ │ │ ├── _Imports.razor
│ │ │ ├── App.razor
│ │ │ └── Layout
│ │ │ │ └── MainLayout.razor
│ │ ├── wwwroot
│ │ │ └── favicon.png
│ │ ├── appsettings.Development.json
│ │ ├── Properties
│ │ │ ├── serviceDependencies.json
│ │ │ ├── serviceDependencies.local.json
│ │ │ └── launchSettings.json
│ │ ├── Data
│ │ │ ├── ApplicationUser.cs
│ │ │ └── ApplicationDbContext.cs
│ │ ├── appsettings.json
│ │ └── BlazorApp.csproj
│ │ └── BlazorApp.Client
│ │ ├── wwwroot
│ │ ├── appsettings.json
│ │ └── appsettings.Development.json
│ │ ├── RedirectToLogin.razor
│ │ ├── Pages
│ │ ├── Auth.razor
│ │ └── Counter.razor
│ │ ├── UserInfo.cs
│ │ ├── _Imports.razor
│ │ ├── Program.cs
│ │ └── BlazorApp.Client.csproj
├── TestJWTApi
│ ├── TestJWTApi
│ │ ├── TestJWTApi.http
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── WeatherForecast.cs
│ │ ├── TestJWTApi.csproj
│ │ ├── Controllers
│ │ │ └── WeatherForecastController.cs
│ │ └── Properties
│ │ │ └── launchSettings.json
│ └── TestJWTApi.sln
├── MiniAuth.Identity
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── MiniAuth.IdentityWeb.csproj
│ ├── Properties
│ │ └── launchSettings.json
│ └── MiniAuth.Identity.sln
├── TestCookieApi
│ └── TestCookieApi
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── .config
│ │ └── dotnet-tools.json
│ │ ├── TestCookieApi.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── launchSettings.json
├── TestCustomOptions
│ └── TestCustomOptions
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── TestCustomOptions.csproj
│ │ └── Properties
│ │ └── launchSettings.json
├── TestReleaseDefault
│ └── TestReleaseDefault
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── TestReleaseDefault.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── launchSettings.json
├── IdentityAPIEndpoints
│ └── IdentityAPIEndpoints
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ └── IdentityAPIEndpoints.csproj
├── TestAspNetCoreApiAot
│ ├── TestAspNetCoreApiAot
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── TestAspNetCoreApiAot.http
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ └── TestAspNetCoreApiAot.csproj
│ └── TestAspNetCoreApiAot.sln
├── TestAspNetCoreEmpty
│ └── TestAspNetCoreEmpty
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── TestAspNetCoreEmpty.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── launchSettings.json
├── TestApiWithoutIdentity
│ └── TestApiWithoutIdentity
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── .config
│ │ └── dotnet-tools.json
│ │ ├── WeatherForecast.cs
│ │ ├── TestApiWithoutIdentity.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── launchSettings.json
├── TestBearer
│ └── TestBearer
│ │ ├── appsettings.json
│ │ ├── appsettings.Development.json
│ │ ├── TestBearer.csproj
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ └── Program.cs
└── MiniAuth.Tests.AspNetCore
│ ├── Properties
│ └── launchSettings.json
│ └── MiniAuth.Tests.AspNetCore.csproj
├── Build.csproj
├── DevNote.md
└── .github
├── workflows
└── main.yml
└── FUNDING.yml
/src/Frontend_Identity/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.es.md:
--------------------------------------------------------------------------------
1 | Waiting contributions 🙌
--------------------------------------------------------------------------------
/README.jp.md:
--------------------------------------------------------------------------------
1 | Waiting contributions 🙌
--------------------------------------------------------------------------------
/README.zh-Hant.md:
--------------------------------------------------------------------------------
1 | Waiting contributions 🙌
--------------------------------------------------------------------------------
/src/Frontend_Identity/src/assets/css/style.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/Frontend_Identity/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /tests/TestCookieApi/TestCookieApi/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mini-software/MiniAuth/HEAD/tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/wwwroot/favicon.ico -------------------------------------------------------------------------------- /tests/BlazorApp/BlazorApp/BlazorApp.Client/wwwroot/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/BlazorApp/BlazorApp/BlazorApp/Components/Account/Pages/InvalidUser.razor: -------------------------------------------------------------------------------- 1 | @page "/Account/InvalidUser" 2 | 3 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /src/MiniAuth.IdentityAuth/Models/RefreshRequest.cs: -------------------------------------------------------------------------------- 1 | namespace MiniAuth.IdentityAuth.Models 2 | { 3 | public sealed class RefreshRequest 4 | { 5 | public string refreshToken { get; init; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/TestCustomOptions/TestCustomOptions/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/TestMVC5/TestMVC5/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "mssql1": { 4 | "type": "mssql", 5 | "connectionId": "ConnectionStrings:DefaultConnection" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using TestMVCWithCookieIdentity 2 | @using TestMVCWithCookieIdentity.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /tests/TestReleaseDefault/TestReleaseDefault/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/Frontend_Identity/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "Vue.volar", 4 | "Vue.vscode-typescript-vue-plugin", 5 | "dbaeumer.vscode-eslint", 6 | "esbenp.prettier-vscode" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /tests/IdentityAPIEndpoints/IdentityAPIEndpoints/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/TestAspNetCoreApiAot/TestAspNetCoreApiAot/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/TestAspNetCoreEmpty/TestAspNetCoreEmpty/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/TestMVCCore3/TestMVCCore3/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "mssql1": { 4 | "type": "mssql", 5 | "connectionId": "ConnectionStrings:DefaultConnection" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /Build.csproj: -------------------------------------------------------------------------------- 1 |Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /tests/TestCustomOptions/TestCustomOptions/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestMVC5/TestMVC5/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/TestReleaseDefault/TestReleaseDefault/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Properties/serviceDependencies.local.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "mssql1": { 4 | "type": "mssql.local", 5 | "connectionId": "ConnectionStrings:DefaultConnection" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /tests/IdentityAPIEndpoints/IdentityAPIEndpoints/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestAspNetCoreApiAot/TestAspNetCoreApiAot/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestAspNetCoreEmpty/TestAspNetCoreEmpty/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Properties/serviceDependencies.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "mssql1": { 4 | "type": "mssql", 5 | "connectionId": "ConnectionStrings:DefaultConnection" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /tests/TestApiWithoutIdentity/TestApiWithoutIdentity/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestMVC5/TestMVC5/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestMVCCore3/TestMVCCore3/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/TestMVCCore3/TestMVCCore3/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Properties/serviceDependencies.local.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "mssql1": { 4 | "type": "mssql.local", 5 | "connectionId": "ConnectionStrings:DefaultConnection" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Areas/Identity/Pages/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Identity 2 | @using AspNetCoreIdentity.Areas.Identity 3 | @using AspNetCoreIdentity.Areas.Identity.Pages 4 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 5 | -------------------------------------------------------------------------------- /tests/TestMVC5/TestMVC5/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification 2 | // for details on configuring this project to bundle and minify static web assets. 3 | 4 | // Write your JavaScript code. 5 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/BlazorApp/BlazorApp/BlazorApp/Components/Account/Pages/InvalidPasswordReset.razor: -------------------------------------------------------------------------------- 1 | @page "/Account/InvalidPasswordReset" 2 | 3 |7 | The password reset link is invalid. 8 |
9 | -------------------------------------------------------------------------------- /tests/MiniAuth.Identity/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "JWTKey": "40b9e63e-b264-4939-9f12-60a21d96dfbf" 10 | } 11 | -------------------------------------------------------------------------------- /tests/TestApiWithoutIdentity/TestApiWithoutIdentity/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-ef": { 6 | "version": "8.0.5", 7 | "commands": [ 8 | "dotnet-ef" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Areas/Identity/Pages/Account/ConfirmEmail.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ConfirmEmailModel 3 | @{ 4 | ViewData["Title"] = "Confirm email"; 5 | } 6 | 7 |Learn about building Web apps with ASP.NET Core.
8 |Learn about building Web apps with ASP.NET Core.
8 |7 | Please check your email to reset your password. 8 |
9 | -------------------------------------------------------------------------------- /tests/BlazorApp/BlazorApp/BlazorApp/Components/Account/Pages/Lockout.razor: -------------------------------------------------------------------------------- 1 | @page "/Account/Lockout" 2 | 3 |This account has been locked out, please try again later.
8 |Learn about building Web apps with ASP.NET Core.
8 |Learn about building Web apps with ASP.NET Core.
8 |9 | Please check your email to reset your password. 10 |
11 | -------------------------------------------------------------------------------- /tests/TestAspNetCoreApiAot/TestAspNetCoreApiAot/TestAspNetCoreApiAot.http: -------------------------------------------------------------------------------- 1 | @TestAspNetCoreApiAot_HostAddress = http://localhost:5170 2 | 3 | GET {{TestAspNetCoreApiAot_HostAddress}}/todos/ 4 | Accept: application/json 5 | 6 | ### 7 | 8 | GET {{TestAspNetCoreApiAot_HostAddress}}/todos/1 9 | Accept: application/json 10 | 11 | ### 12 | -------------------------------------------------------------------------------- /tests/BlazorApp/BlazorApp/BlazorApp/Components/Account/Pages/ResetPasswordConfirmation.razor: -------------------------------------------------------------------------------- 1 | @page "/Account/ResetPasswordConfirmation" 2 |6 | Your password has been reset. Please click here to log in. 7 |
8 | -------------------------------------------------------------------------------- /src/MiniAuth.IdentityAuth/Models/ResponseVo.cs: -------------------------------------------------------------------------------- 1 | namespace MiniAuth.IdentityAuth.Models 2 | { 3 | internal class ResponseVo 4 | { 5 | public bool ok { get; set; } = true; 6 | public int code { get; set; } = 200; 7 | public string message { get; set; } = ""; 8 | public object data { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Account/ForgotPasswordConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ForgotPasswordConfirmation 3 | @{ 4 | ViewData["Title"] = "Forgot password confirmation"; 5 | } 6 | 7 |9 | Please check your email to reset your password. 10 |
11 | -------------------------------------------------------------------------------- /src/Frontend_Identity/src/helpers/ViteEnv.ts: -------------------------------------------------------------------------------- 1 | ///You do not have access to this resource.
10 |This account has been locked out, please try again later.
10 |You do not have access to this resource.
10 |This account has been locked out, please try again later.
10 |9 | Your password has been reset. Please click here to log in. 10 |
11 | -------------------------------------------------------------------------------- /tests/TestJWTApi/TestJWTApi/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | namespace TestJWTApi 2 | { 3 | public class WeatherForecast 4 | { 5 | public DateOnly Date { get; set; } 6 | 7 | public int TemperatureC { get; set; } 8 | 9 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 10 | 11 | public string? Summary { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Frontend_Identity/buildExt.js: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs'; 2 | // remove the base URL from the login.js file 3 | { 4 | const filePath = '../MiniAuth.IdentityAuth/wwwroot/login.js'; 5 | const fileData = fs.readFileSync(filePath, 'utf8'); 6 | const updatedData = fileData.replace('http://localhost:5566/MiniAuth/', ''); 7 | fs.writeFileSync(filePath, updatedData, 'utf8'); 8 | } -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Account/ResetPasswordConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ResetPasswordConfirmationModel 3 | @{ 4 | ViewData["Title"] = "Reset password confirmation"; 5 | } 6 | 7 |9 | Your password has been reset. Please click here to log in. 10 |
11 | -------------------------------------------------------------------------------- /tests/MiniAuth.Tests.AspNetCore/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "MiniAuth.Tests.AspNetCore": { 4 | "commandName": "Project", 5 | "launchBrowser": true, 6 | "environmentVariables": { 7 | "ASPNETCORE_ENVIRONMENT": "Development" 8 | }, 9 | "applicationUrl": "https://localhost:59456;http://localhost:59457" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Frontend_Identity/src/assets/images/logo/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Frontend_Identity/src/main.ts: -------------------------------------------------------------------------------- 1 | import './assets/css/style.css' 2 | 3 | import { createApp } from 'vue' 4 | import { createPinia } from 'pinia' 5 | 6 | import App from './App.vue' 7 | import router from './router' 8 | 9 | import { i18n } from './i18n' 10 | 11 | const app = createApp(App) 12 | 13 | app.use(i18n) 14 | 15 | app.use(createPinia()) 16 | app.use(router) 17 | 18 | app.mount('#app') 19 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Areas/Identity/Pages/Account/Manage/DownloadPersonalData.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model DownloadPersonalDataModel 3 | @{ 4 | ViewData["Title"] = "Download Your Data"; 5 | ViewData["ActivePage"] = ManageNavPages.PersonalData; 6 | } 7 | 8 |Current count: @currentCount
9 | 10 | 11 | 12 | @code { 13 | private int currentCount = 0; 14 | 15 | private void IncrementCount() 16 | { 17 | currentCount++; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Data/ApplicationDbContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Identity.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore; 3 | 4 | namespace TestMVCWithCookieIdentity.Data 5 | { 6 | public class ApplicationDbContext : IdentityDbContext 7 | { 8 | public ApplicationDbContext(DbContextOptionsYou have successfully logged out of the application.
19 | } 20 | } 21 |12 | This app does not currently have a real email sender registered, see these docs for how to configure a real email sender. 13 | Normally this would be emailed: Click here to confirm your account 14 |
15 | } 16 | else 17 | { 18 |19 | Please check your email to confirm your account. 20 |
21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Account/Logout.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model LogoutModel 3 | @{ 4 | ViewData["Title"] = "Log out"; 5 | } 6 | 7 |You have successfully logged out of the application.
19 | } 20 | } 21 |12 | This app does not currently have a real email sender registered, see these docs for how to configure a real email sender. 13 | Normally this would be emailed: Click here to confirm your account 14 |
15 | } 16 | else 17 | { 18 |19 | Please check your email to confirm your account. 20 |
21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /src/Frontend_Identity/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: ['./src/**/*.{html,js}'], 4 | theme: { 5 | colors: { 6 | 'blue': '#1fb6ff', 7 | 'purple': '#7e5bef', 8 | 'pink': '#ff49db', 9 | 'orange': '#ff7849', 10 | 'green': '#13ce66', 11 | 'yellow': '#ffc82c', 12 | 'gray-dark': '#273444', 13 | 'gray': '#8492a6', 14 | 'gray-light': '#d3dce6', 15 | }, 16 | fontFamily: { 17 | sans: ['Graphik', 'sans-serif'], 18 | serif: ['Merriweather', 'serif'], 19 | }, 20 | extend: { 21 | spacing: { 22 | '8xl': '96rem', 23 | '9xl': '128rem', 24 | }, 25 | borderRadius: { 26 | '4xl': '2rem', 27 | } 28 | } 29 | }, 30 | } -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Areas/Identity/Pages/Account/Manage/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | if (ViewData.TryGetValue("ParentLayout", out var parentLayout) && parentLayout != null) 3 | { 4 | Layout = parentLayout.ToString(); 5 | } 6 | else 7 | { 8 | Layout = "/Areas/Identity/Pages/_Layout.cshtml"; 9 | } 10 | } 11 | 12 |5 | Put these codes in a safe place. 6 |
7 |8 | If you lose your device and don't have the recovery codes you will lose access to your account. 9 |
10 |@recoveryCode
17 | 13 | This action only disables 2FA. 14 |
15 |16 | Disabling 2FA does not change the keys used in authenticator apps. If you wish to change the key 17 | used in an authenticator app you should reset your authenticator keys. 18 |
19 |Loading...
8 | } 9 | else 10 | { 11 | @Body 12 | } 13 | 14 | @code { 15 | [CascadingParameter] 16 | private HttpContext? HttpContext { get; set; } 17 | 18 | protected override void OnParametersSet() 19 | { 20 | if (HttpContext is null) 21 | { 22 | // If this code runs, we're currently rendering in interactive mode, so there is no HttpContext. 23 | // The identity pages need to set cookies, so they require an HttpContext. To achieve this we 24 | // must transition back from interactive mode to a server-rendered page. 25 | NavigationManager.Refresh(forceReload: true); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Frontend_Identity/src/assets/svg/delete.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Account/Manage/Disable2fa.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model Disable2faModel 3 | @{ 4 | ViewData["Title"] = "Disable two-factor authentication (2FA)"; 5 | ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication; 6 | } 7 | 8 |13 | This action only disables 2FA. 14 |
15 |16 | Disabling 2FA does not change the keys used in authenticator apps. If you wish to change the key 17 | used in an authenticator app you should reset your authenticator keys. 18 |
19 |12 | Put these codes in a safe place. 13 |
14 |15 | If you lose your device and don't have the recovery codes you will lose access to your account. 16 |
17 |@Model.RecoveryCodes[row]@Model.RecoveryCodes[row + 1]
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Account/Manage/ShowRecoveryCodes.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ShowRecoveryCodesModel 3 | @{ 4 | ViewData["Title"] = "Recovery codes"; 5 | ViewData["ActivePage"] = "TwoFactorAuthentication"; 6 | } 7 | 8 |12 | Put these codes in a safe place. 13 |
14 |15 | If you lose your device and don't have the recovery codes you will lose access to your account. 16 |
17 |@Model.RecoveryCodes[row]@Model.RecoveryCodes[row + 1]
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to Development environment will display more detailed information about the error that occurred. 20 |
21 |22 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 23 |
24 | -------------------------------------------------------------------------------- /tests/BlazorApp/BlazorApp/BlazorApp/BlazorApp.csproj: -------------------------------------------------------------------------------- 1 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Error.cshtml: -------------------------------------------------------------------------------- 1 | @page 2 | @model ErrorModel 3 | @{ 4 | ViewData["Title"] = "Error"; 5 | } 6 | 7 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to Development environment will display more detailed information about the error that occurred. 20 |
21 |22 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 23 |
24 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model ErrorViewModel 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | } 5 | 6 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /tests/AspNetCoreIdentity/AspNetCoreIdentity/Areas/Identity/Pages/Account/AccessDenied.cshtml.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | #nullable disable 4 | 5 | using Microsoft.AspNetCore.Mvc.RazorPages; 6 | 7 | namespace AspNetCoreIdentity.Areas.Identity.Pages.Account 8 | { 9 | ///Your account contains personal data that you have given us. This page allows you to download or delete that data.
13 |14 | Deleting this data will permanently remove your account, and this cannot be recovered. 15 |
16 | 19 |20 | Delete 21 |
22 |Your account contains personal data that you have given us. This page allows you to download or delete that data.
13 |14 | Deleting this data will permanently remove your account, and this cannot be recovered. 15 |
16 | 19 |20 | Delete 21 |
22 |12 | 13 | If you reset your authenticator key your authenticator app will not work until you reconfigure it. 14 |
15 |16 | This process disables 2FA until you verify your authenticator app. 17 | If you do not complete your authenticator app configuration you may lose access to your account. 18 |
19 |12 | 13 | If you reset your authenticator key your authenticator app will not work until you reconfigure it. 14 |
15 |16 | This process disables 2FA until you verify your authenticator app. 17 | If you do not complete your authenticator app configuration you may lose access to your account. 18 |
19 |12 | 13 | Put these codes in a safe place. 14 |
15 |16 | If you lose your device and don't have the recovery codes you will lose access to your account. 17 |
18 |19 | Generating new recovery codes does not change the keys used in authenticator apps. If you wish to change the key 20 | used in an authenticator app you should reset your authenticator keys. 21 |
22 |12 | 13 | Put these codes in a safe place. 14 |
15 |16 | If you lose your device and don't have the recovery codes you will lose access to your account. 17 |
18 |19 | Generating new recovery codes does not change the keys used in authenticator apps. If you wish to change the key 20 | used in an authenticator app you should reset your authenticator keys. 21 |
22 |10 | You have requested to log in with a recovery code. This login will not be remembered until you provide 11 | an authenticator app code at log in or disable 2FA and log in again. 12 |
13 |10 | You have requested to log in with a recovery code. This login will not be remembered until you provide 11 | an authenticator app code at log in or disable 2FA and log in again. 12 |
13 |Your account contains personal data that you have given us. This page allows you to download or delete that data.
13 |14 | Deleting this data will permanently remove your account, and this cannot be recovered. 15 |
16 | 20 |21 | Delete 22 |
23 |12 | Deleting this data will permanently remove your account, and this cannot be recovered. 13 |
14 |
12 | Request ID: @RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | 27 | @code{ 28 | [CascadingParameter] 29 | private HttpContext? HttpContext { get; set; } 30 | 31 | private string? RequestId { get; set; } 32 | private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 33 | 34 | protected override void OnInitialized() => 35 | RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; 36 | } 37 | -------------------------------------------------------------------------------- /tests/TestMVCWithCookieIdentity/TestMVCWithCookieIdentity/Areas/Identity/Pages/Account/Manage/PersonalData.cshtml.cs: -------------------------------------------------------------------------------- 1 | // Licensed to the .NET Foundation under one or more agreements. 2 | // The .NET Foundation licenses this file to you under the MIT license. 3 | using System; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Identity; 6 | using Microsoft.AspNetCore.Mvc; 7 | using Microsoft.AspNetCore.Mvc.RazorPages; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace TestMVCWithCookieIdentity.Areas.Identity.Pages.Account.Manage 11 | { 12 | public class PersonalDataModel : PageModel 13 | { 14 | private readonly UserManager12 | Deleting this data will permanently remove your account, and this cannot be recovered. 13 |
14 |