Integrate Prove Bot Detection SDK for SMS fraud prevention#56
Open
Copilot wants to merge 7 commits into
Open
Conversation
Co-authored-by: mustafamizrak <2135310+mustafamizrak@users.noreply.github.com>
Co-authored-by: mustafamizrak <2135310+mustafamizrak@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Prove Bot Detection integration for SMS fraud detection
Integrate Prove Bot Detection SDK for SMS fraud prevention
Feb 11, 2026
# Conflicts: # app/src/main/assets/config.json # app/src/main/java/com/azuresamples/msalnativeauthandroidkotlinsampleapp/ProveManager.kt
antrix1989
reviewed
Feb 19, 2026
| { | ||
| "Prove": { | ||
| "clientId": "nativeauthfraudcheck-poc-e7971c6c-c35b-4e17-80f8-99aefdb611c0-1770372962304", | ||
| "clientSecret": "CgvbgUQpZ95TXZOkYgi3TgOs1MITJj6L" |
There was a problem hiding this comment.
should we remove clientSecret from public sample?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Prove Bot Detection to prevent SMS fraud during sign-in, sign-up, and strong auth verification flows. Bot detection runs before OTP codes are sent, blocking suspicious requests.
Changes
Dependency & Configuration
com.prove.sdk:proveauth:+) and Maven repositoryINTERNET,ACCESS_NETWORK_STATE,CHANGE_NETWORK_STATECore Implementation
ProveBotDetectionHelpersingleton for SDK lifecycle and bot detection API callsAuthClient.initialize()to obtain device-level Prove KeyEmailSignInSignUpFragment(signIn/signUp)EmailPasswordSignInSignUpFragment(signIn/signUp)StrongAuthVerificationContactFragment(verifyContact for SMS channel)Flow Example
Configuration Required
BOT_DETECTION_BACKEND_URLwith production backend endpointWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx1536m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/gradle-daemon-main-8.13.jar(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Overview
Integrate Prove Bot Detection into this sample Android app to add SMS fraud detection before OTP codes are sent during sign-in, sign-up, and strong auth verification flows.
Changes Required
1. Add Prove SDK Repository & Dependency
settings.gradle— Add the Prove Maven repository:app/build.gradle— Add the Prove SDK dependency in thedependenciesblock (alongside existing dependencies like okhttp):2. Add Required Permissions to AndroidManifest.xml
Ensure the following permissions are present in
app/src/main/AndroidManifest.xml:3. Create a new Prove Bot Detection Helper class
Create a new file at
app/src/main/java/com/azuresamples/msalnativeauthandroidkotlinsampleapp/ProveBotDetectionHelper.ktwith the following implementation: