Skip to content

Support authentication for URL fetching #79

Description

@SashankBhamidi

Description

Many calendar services require authentication to access calendar URLs. Add support for authenticated URL fetching.

Use Cases

  1. Google Calendar - OAuth tokens or service account credentials
  2. Office 365 / Outlook - Microsoft authentication
  3. CalDAV servers - Basic auth (username/password)
  4. Custom APIs - API keys, bearer tokens

Proposed Implementation

Add optional authentication parameters to the /fetch endpoint:

class FetchRequest(BaseModel):
    url: str
    auth_type: Optional[str] = None  # "basic", "bearer", "oauth"
    credentials: Optional[dict] = None

Frontend Changes

Add authentication options to the Fetch URL tab:

  • Auth type dropdown (None, Basic, Bearer Token, etc.)
  • Conditional credential inputs based on auth type
  • Secure handling (don't log credentials)

Security Considerations

  • Credentials should NOT be logged
  • Consider time-limited tokens over passwords
  • Rate limiting per credential (prevent abuse)
  • Document security best practices

References

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions