Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/"
@using MauiBlazorWebIdentity.Shared.Services
@using MauiBlazorWeb.Shared.Services
@inject IFormFactor FormFactor

<PageTitle>Home</PageTitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/weather"
@using Microsoft.AspNetCore.Authorization
@using MauiBlazorWebIdentity.Shared.Services
@using MauiBlazorWeb.Shared.Services
@attribute [Authorize]
@inject IWeatherService WeatherService

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MauiBlazorWebIdentity.Shared.Services
namespace MauiBlazorWeb.Shared.Services
{
public interface IFormFactor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MauiBlazorWebIdentity.Shared.Services
namespace MauiBlazorWeb.Shared.Services
{
public interface IWeatherService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using MauiBlazorWebIdentity.Shared.Services
@using MauiBlazorWeb.Shared.Services
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;
using MauiBlazorWebIdentity.Web.Components.Account.Pages;
using MauiBlazorWebIdentity.Web.Components.Account.Pages.Manage;
using MauiBlazorWebIdentity.Web.Data;
using MauiBlazorWeb.Web.Components.Account.Pages;
using MauiBlazorWeb.Web.Components.Account.Pages.Manage;
using MauiBlazorWeb.Web.Data;

namespace Microsoft.AspNetCore.Routing;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using MauiBlazorWebIdentity.Web.Data;
using MauiBlazorWeb.Web.Data;

namespace MauiBlazorWebIdentity.Web.Components.Account;
namespace MauiBlazorWeb.Web.Components.Account;

// Remove the "else if (EmailSender is IdentityNoOpEmailSender)" block from RegisterConfirmation.razor after updating with a real implementation.
internal sealed class IdentityNoOpEmailSender : IEmailSender<ApplicationUser>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Identity;
using MauiBlazorWebIdentity.Web.Data;
using MauiBlazorWeb.Web.Data;

namespace MauiBlazorWebIdentity.Web.Components.Account;
namespace MauiBlazorWeb.Web.Components.Account;

internal sealed class IdentityRedirectManager(NavigationManager navigationManager)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
using Microsoft.AspNetCore.Components.Server;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using MauiBlazorWebIdentity.Web.Data;
using MauiBlazorWeb.Web.Data;

namespace MauiBlazorWebIdentity.Web.Components.Account;
namespace MauiBlazorWeb.Web.Components.Account;

// This is a server-side AuthenticationStateProvider that revalidates the security stamp for the connected user
// every 30 minutes an interactive circuit is connected.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@page "/Account/ConfirmEmail"
@page "/Account/ConfirmEmail"

@using System.Text
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IdentityRedirectManager RedirectManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@page "/Account/ConfirmEmailChange"
@page "/Account/ConfirmEmailChange"

@using System.Text
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@page "/Account/ExternalLogin"
@page "/Account/ExternalLogin"

@using System.ComponentModel.DataAnnotations
@using System.Security.Claims
@using System.Text
@using System.Text.Encodings.Web
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@page "/Account/ForgotPassword"
@page "/Account/ForgotPassword"

@using System.ComponentModel.DataAnnotations
@using System.Text
@using System.Text.Encodings.Web
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IEmailSender<ApplicationUser> EmailSender
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@page "/Account/Login"
@page "/Account/Login"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Authentication
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/LoginWith2fa"
@page "/Account/LoginWith2fa"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/LoginWithRecoveryCode"
@page "/Account/LoginWithRecoveryCode"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Manage/ChangePassword"
@page "/Account/Manage/ChangePassword"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Manage/DeletePersonalData"
@page "/Account/Manage/DeletePersonalData"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "/Account/Manage/Disable2fa"
@page "/Account/Manage/Disable2fa"

@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IdentityRedirectManager RedirectManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@page "/Account/Manage/Email"
@page "/Account/Manage/Email"

@using System.ComponentModel.DataAnnotations
@using System.Text
@using System.Text.Encodings.Web
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IEmailSender<ApplicationUser> EmailSender
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@page "/Account/Manage/EnableAuthenticator"
@page "/Account/Manage/EnableAuthenticator"

@using System.ComponentModel.DataAnnotations
@using System.Globalization
@using System.Text
@using System.Text.Encodings.Web
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject UrlEncoder UrlEncoder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Manage/ExternalLogins"
@page "/Account/Manage/ExternalLogins"

@using Microsoft.AspNetCore.Authentication
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "/Account/Manage/GenerateRecoveryCodes"
@page "/Account/Manage/GenerateRecoveryCodes"

@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IdentityRedirectManager RedirectManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Manage"
@page "/Account/Manage"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/Account/Manage/Passkeys"
@page "/Account/Manage/Passkeys"

@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data
@using Microsoft.AspNetCore.Identity
@using System.ComponentModel.DataAnnotations
@using System.Buffers.Text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "/Account/Manage/PersonalData"
@page "/Account/Manage/PersonalData"

@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IdentityRedirectManager RedirectManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/Account/Manage/RenamePasskey/{Id}"
@page "/Account/Manage/RenamePasskey/{Id}"

@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data
@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using System.Buffers.Text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "/Account/Manage/ResetAuthenticator"
@page "/Account/Manage/ResetAuthenticator"

@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Manage/SetPassword"
@page "/Account/Manage/SetPassword"

@using System.ComponentModel.DataAnnotations
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@page "/Account/Manage/TwoFactorAuthentication"
@page "/Account/Manage/TwoFactorAuthentication"

@using Microsoft.AspNetCore.Http.Features
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject SignInManager<ApplicationUser> SignInManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@page "/Account/Register"
@page "/Account/Register"

@using System.ComponentModel.DataAnnotations
@using System.Text
@using System.Text.Encodings.Web
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IUserStore<ApplicationUser> UserStore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@page "/Account/RegisterConfirmation"
@page "/Account/RegisterConfirmation"

@using System.Text
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IEmailSender<ApplicationUser> EmailSender
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@page "/Account/ResendEmailConfirmation"
@page "/Account/ResendEmailConfirmation"

@using System.ComponentModel.DataAnnotations
@using System.Text
@using System.Text.Encodings.Web
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject UserManager<ApplicationUser> UserManager
@inject IEmailSender<ApplicationUser> EmailSender
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@page "/Account/ResetPassword"
@page "/Account/ResetPassword"

@using System.ComponentModel.DataAnnotations
@using System.Text
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.WebUtilities
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject IdentityRedirectManager RedirectManager
@inject UserManager<ApplicationUser> UserManager
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@using MauiBlazorWeb.Web.Components.Account.Shared
@attribute [ExcludeFromInteractiveRouting]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MauiBlazorWebIdentity.Web.Components.Account;
namespace MauiBlazorWeb.Web.Components.Account;

public class PasskeyInputModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MauiBlazorWebIdentity.Web.Components.Account;
namespace MauiBlazorWeb.Web.Components.Account;

public enum PasskeyOperation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@using Microsoft.AspNetCore.Authentication
@using Microsoft.AspNetCore.Authentication
@using Microsoft.AspNetCore.Identity
@using MauiBlazorWebIdentity.Web.Data
@using MauiBlazorWeb.Web.Data

@inject SignInManager<ApplicationUser> SignInManager
@inject IdentityRedirectManager RedirectManager
Expand Down
Loading
Loading