superset_auth_authenticate_user
Authenticate users with Apache Superset to obtain access tokens for API interactions, handling token validation and refresh processes.
Instructions
Authenticate with Superset and get access token
Makes a request to the /api/v1/security/login endpoint to authenticate and obtain an access token. If there's an existing token, will first try to check its validity. If invalid, will attempt to refresh token before falling back to re-authentication.
Args: username: Superset username (falls back to environment variable if not provided) password: Superset password (falls back to environment variable if not provided) refresh: Whether to refresh the token if invalid (defaults to True)
Returns: A dictionary with authentication status and access token or error information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | ||
| password | No | ||
| refresh | No |