Skip to content

docs(TwoFactorAuth): Add 2FA doc for integration in a new app - #642

Open
LouisCAD wants to merge 4 commits into
mainfrom
2fa-doc
Open

docs(TwoFactorAuth): Add 2FA doc for integration in a new app#642
LouisCAD wants to merge 4 commits into
mainfrom
2fa-doc

Conversation

@LouisCAD

Copy link
Copy Markdown
Contributor

No description provided.

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@LouisCAD
LouisCAD marked this pull request as ready for review August 13, 2026 11:44
Copilot AI balanced review requested due to automatic review settings August 13, 2026 11:44
@LouisCAD
LouisCAD enabled auto-merge August 13, 2026 11:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds integration guidance for TwoFactorAuth polling, UI overlays, and push notifications.

Changes:

  • Documents manager setup with or without Core’s user database.
  • Documents Compose overlay integration.
  • Adds Google Play Services notification setup guidance.
Suppressed comments (2)

TwoFactorAuth/README.md:149

  • The integration checklist omits the Android 13+ runtime notification permission. Although the manifest permission is merged from the Notifications module, notifyCompat deliberately skips posting when POST_NOTIFICATIONS has not been granted, so a new app following every listed step can still receive pushes without showing the 2FA notification.
Here's the list of changes you need to add from the example PRs above:
1. Ensure `TwoFactorAuthNotifications.channel()` is created/submitted to Android's NotificationManager.

TwoFactorAuth/README.md:95

  • The published extension is named addComposeOverlay, not addComposableOverlay (TwoFactorAuth/Front/src/main/kotlin/ComposeOverlayHosting.kt:30). As written, both the instruction and example reference a nonexistent API and will not compile.
If the Activity is NOT using Compose, or if you don't know (e.g. in a `BaseActivity` class), the `addComposableOverlay`
function was made just for that, just make sure it's called after `setContentView` or `setContent`.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread TwoFactorAuth/README.md Outdated
Comment thread TwoFactorAuth/README.md
Comment thread TwoFactorAuth/README.md
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants