dhis2_setup_authentication_patterns
Create and configure authentication patterns for DHIS2 apps, supporting basic, OAuth2, cookie, and token-based methods. Manage session settings, security features, and redirect URLs for secure user access.
Instructions
Generate authentication patterns and examples for DHIS2 app
Input Schema
Name | Required | Description | Default |
---|---|---|---|
authType | Yes | Type of authentication to implement | |
providers | No | Authentication providers to support | |
redirectUrls | No | ||
securityFeatures | No | ||
sessionManagement | No |
Input Schema (JSON Schema)
{
"properties": {
"authType": {
"description": "Type of authentication to implement",
"enum": [
"basic",
"oauth2",
"cookie",
"token"
],
"type": "string"
},
"providers": {
"description": "Authentication providers to support",
"items": {
"enum": [
"dhis2",
"google",
"facebook",
"custom"
],
"type": "string"
},
"type": "array"
},
"redirectUrls": {
"properties": {
"failure": {
"description": "Redirect URL after failed login",
"type": "string"
},
"logout": {
"description": "Redirect URL after logout",
"type": "string"
},
"success": {
"description": "Redirect URL after successful login",
"type": "string"
}
},
"type": "object"
},
"securityFeatures": {
"properties": {
"csrfProtection": {
"description": "Enable CSRF protection",
"type": "boolean"
},
"httpOnly": {
"description": "Use httpOnly cookies",
"type": "boolean"
},
"secure": {
"description": "Use secure cookies (HTTPS only)",
"type": "boolean"
}
},
"type": "object"
},
"sessionManagement": {
"properties": {
"refreshTokens": {
"description": "Enable refresh token handling",
"type": "boolean"
},
"rememberUser": {
"description": "Enable remember user functionality",
"type": "boolean"
},
"timeout": {
"description": "Session timeout in minutes",
"type": "number"
}
},
"type": "object"
}
},
"required": [
"authType"
],
"type": "object"
}