dhis2_android_setup_authentication
Configure authentication and security settings for the DHIS2 Android app, supporting methods like biometric, OAuth2, PIN, and pattern. Manage session timeouts, token refresh, and enable security features such as screenshot prevention and root detection.
Instructions
Configure authentication and security patterns for DHIS2 Android app
Input Schema
Name | Required | Description | Default |
---|---|---|---|
authMethods | Yes | Authentication methods to support | |
biometricSettings | No | ||
securityFeatures | No | ||
sessionManagement | No |
Input Schema (JSON Schema)
{
"properties": {
"authMethods": {
"description": "Authentication methods to support",
"items": {
"enum": [
"basic",
"oauth2",
"biometric",
"pin",
"pattern"
],
"type": "string"
},
"type": "array"
},
"biometricSettings": {
"properties": {
"faceAuth": {
"description": "Enable face authentication",
"type": "boolean"
},
"fallbackToPin": {
"description": "Allow PIN fallback for biometric auth",
"type": "boolean"
},
"fingerprintAuth": {
"description": "Enable fingerprint authentication",
"type": "boolean"
}
},
"type": "object"
},
"securityFeatures": {
"properties": {
"certificatePinning": {
"description": "Enable SSL certificate pinning",
"type": "boolean"
},
"obfuscation": {
"description": "Enable code obfuscation",
"type": "boolean"
},
"rootDetection": {
"description": "Detect rooted devices",
"type": "boolean"
},
"screenShotPrevention": {
"description": "Prevent screenshots in sensitive screens",
"type": "boolean"
}
},
"type": "object"
},
"sessionManagement": {
"properties": {
"backgroundTimeout": {
"description": "Background session timeout (minutes)",
"type": "number"
},
"refreshTokens": {
"description": "Enable automatic token refresh",
"type": "boolean"
},
"timeout": {
"description": "Session timeout (minutes)",
"type": "number"
}
},
"type": "object"
}
},
"required": [
"authMethods"
],
"type": "object"
}