Skip to main content
Glama

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
NameRequiredDescriptionDefault
authMethodsYesAuthentication methods to support
biometricSettingsNo
securityFeaturesNo
sessionManagementNo

Implementation Reference

  • 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, }, ], };
  • 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... `; }
  • Permission registration mapping the tool to the 'canConfigureMobile' permission in the TOOL_PERMISSIONS Map.
    ['dhis2_android_setup_authentication', 'canConfigureMobile'],

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dradebo/dhis2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server