For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • BedrockAgent
      • CLI Tools
      • Configuration
        • AuthHandler
          • flask_decorator
          • get_auth_info
          • get_fastapi_dependency
          • verify_api_key
          • verify_basic_auth
          • verify_bearer_token
        • ConfigLoader
        • Environment Variables
        • SecurityConfig
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions
      • LiveWire
      • MCP Gateway
      • PomBuilder
      • Prefabs
      • Search
      • SkillBase
      • Skills
      • SWAIGFunction
      • SWMLBuilder
      • SWMLService
      • WebService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • Chat
      • Compat
      • Datasphere
      • Fabric
      • Imported Numbers
      • Logs
      • Lookup
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSub
      • Queues
      • Recordings
      • Registry
      • RestClient
      • Short Codes
      • SignalWireRestError
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Returns
  • Example
AgentsConfigurationAuthHandler

get_auth_info

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

get_fastapi_dependency

Next
Built with

Get a summary of which authentication methods are configured and their settings. Sensitive values (passwords, tokens, keys) are not included.

Returns

dict[str, Any] — Dictionary with keys for each enabled method (basic, bearer, api_key), each containing enabled: True and relevant non-sensitive metadata.

Example

1from signalwire.core.security_config import SecurityConfig
2from signalwire.core.auth_handler import AuthHandler
3
4security = SecurityConfig()
5auth = AuthHandler(security)
6info = auth.get_auth_info()
7
8print(info)
9# {
10# 'basic': {'enabled': True, 'username': 'signalwire'},
11# 'bearer': {'enabled': True, 'hint': 'Use Authorization: Bearer <token>'},
12# 'api_key': {'enabled': True, 'header': 'X-API-Key', 'hint': 'Use X-API-Key: <key>'}
13# }