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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authMethods | Yes | Authentication methods to support | |
| biometricSettings | No | ||
| securityFeatures | No | ||
| sessionManagement | No |
Implementation Reference
- src/index.ts:1309-1319 (handler)The main handler for the 'dhis2_android_setup_authentication' tool. It receives input arguments, calls the generator function from android-generators.ts, and returns the generated Android authentication configuration as text content.case 'dhis2_android_setup_authentication': const androidAuthArgs = args as any; const authConfig = generateAndroidAuthenticationConfig(androidAuthArgs); return { content: [ { type: 'text', text: authConfig, }, ], };
- src/android-generators.ts:1775-1782 (helper)The core generator function that produces the Android authentication setup configuration based on input parameters. This is called by the main handler.export function generateAndroidAuthenticationConfig(args: any): string { return `# DHIS2 Android Authentication Configuration Authentication methods: ${args.authMethods.join(', ')} ## Implementation details for Android authentication patterns... `; }
- src/permission-system.ts:161-161 (registration)Permission registration mapping the tool to the 'canConfigureMobile' permission in the TOOL_PERMISSIONS Map.['dhis2_android_setup_authentication', 'canConfigureMobile'],