The HUMAN Security SDK continuously profiles and evaluates device behavior to ensure that connections to your mobile APIs and services are genuine.
This complex and detailed process only requires initializing the SDK to manage a set of secure HTTP headers. These headers are added to all HTTP and HTTPS requests made by the mobile application to the origin server and are refreshed regularly by the SDK as it profiles the end-user’s mobile device.
The SDK supports the following products:
The SDK supports the following environments:
SDK v5.0 is built with the following environments:
For hands-on experience with the SDK, follow this link to download our demo app.
The software documentation provides detailed information on every class, function, and member in the SDK. Please choose the relevant SDK version:
Note: For Apple’s platforms, follow these steps:
HUMAN.doccarchive file with Xcode.The SDK integrates support for our products within your app.
The SDK achieves two objectives to support Bot Defender:
The SDK achieves two objectives to support Account Defender:
To install the SDK, you need:
Add Permissions
Add the following permissions to your AndroidManifest.xml file:
Add the Library to Your Dependencies
Add the SDK repository to the repositories section in your project’s build.gradle and settings.gradle:
Add the SDK dependency to the dependencies section in your app’s build.gradle:
Alternatively, add the SDK’s AAR file manually:
Download the AAR File
Download the AAR file from this link or use the following command:
Add the AAR to Your Project
Rename the downloaded file to HUMAN-release.aar and place it in the libs folder of your project.
Add the Local AAR Dependency
Add the SDK’s Dependencies
Add the following dependencies to the dependencies section in your app’s build.gradle. Choose the appropriate version based on your project’s targetSdkVersion.
Issue with R8
R8 is a tool used to shrink, secure, and optimize Android applications. It can sometimes cause issues with the ktor library included in the SDK. To prevent this, add the following rule to your proguard file:
Swift Package Manager
Add the Package
Add the package from the following repository: human-security-ios-sdk
Recommended Repository
We recommend using the human-security-ios-sdk-spm repository. The main git repository is large, and Swift Package Manager downloads the full repository with all git history. This smaller repository contains a pointer to the precompiled XCFramework included in the latest HUMAN SDK release, allowing for quicker downloads.
CocoaPods
Add the HUMAN Pod
Add the HUMAN pod to your Podfile:
Add the xcframework File Manually
Download the SDK Repository
Download the content from the human-security-ios-sdk repository.
Unzip and Add the Framework
Unzip the file and copy the HUMAN.xcframework to your project.
Integrate in Xcode
In Xcode, add the xcframework to the “Frameworks, Libraries, and Embedded Content” section of your target.
Choose relevant articles based on your environment and requirements:
Easiest Implementation (Recommended)
URLSession features (authentication challenges, caching, etc.)URLSession features.visionOS:
The SDK supports multiple App IDs, which is useful when your app communicates with multiple servers protected by HUMAN, each having different App IDs.
To support multiple App IDs:
HumanSecurity/start(appIds:policy:) function and provide all your App IDs.appId parameter. For single AppID apps, the value may be nil or null.Use our integration verification tool to verify the SDK integration in your app.
Read the test the SDK in your app article to learn how to test SDK integration in your app.