Skip to content

Require authorization before disabling biometrics - #100

Open
Jim8y wants to merge 1 commit into
neoorder:masterfrom
Jim8y:codex/require-auth-disable-biometric
Open

Require authorization before disabling biometrics#100
Jim8y wants to merge 1 commit into
neoorder:masterfrom
Jim8y:codex/require-auth-disable-biometric

Conversation

@Jim8y

@Jim8y Jim8y commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • require wallet authorization before deleting the saved biometric credential
  • keep biometrics enabled when authorization is cancelled or denied

Validation

  • MD_APPLE_SDK_ROOT=/Applications/Xcode-26.5.0.app dotnet build OneGateApp/OneGateApp.csproj -f net10.0-ios -p:RuntimeIdentifier=iossimulator-arm64 -p:EnableCodeSigning=false -p:CodesignKey= -p:CodesignProvision= -p:ProvisioningType=automatic
  • dotnet test OneGate.DebugProtocol.Tests/OneGate.DebugProtocol.Tests.csproj

Copilot AI review requested due to automatic review settings July 24, 2026 18:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a wallet authorization gate to the “Disable biometrics” flow so that deleting the stored biometric credential only happens after explicit user authorization, and cancellation/denial keeps biometrics enabled.

Changes:

  • Inject WalletAuthorizationService into DisableBiometricPage.
  • Require authorization before deleting biometric/credential, and bail out on cancel/deny.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 11 to 15
readonly ApplicationDbContext dbContext;
readonly WalletAuthorizationService authorizationService;

public DisableBiometricPage(ApplicationDbContext dbContext)
public DisableBiometricPage(ApplicationDbContext dbContext, WalletAuthorizationService authorizationService)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants