Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for basic request authorization and bearer token author… #703

Conversation

pratapsingh9
Copy link

@pratapsingh9 pratapsingh9 commented Mar 24, 2025

PR Description

New Authorization Widget Implementation

Purpose: Built a clean authorization widget that handles all auth functionality while matching our app's design system.

Key Features:

  • 🛡️ Supports Basic Auth + Bearer Token
  • 👁️ Toggleable password visibility
  • 🔄 Live header updates
  • 🎨 Consistent UI with our design
  • 🧩 Modular architecture

Implementation:

  • New EditRequestAuthorization widget
  • AuthType enum (none/basic/bearer)
  • Proper Base64 handling for Basic Auth
  • Integrated with header system
  • Separated UI/business logic
  • Optimized state management

Behavior:

  • Auto-detects existing auth headers
  • Dynamic field display per auth type
  • Instant header updates
  • Preserves state between auth types
  • Handles edge cases gracefully

Design:

  • Followed existing UI patterns
  • Consistent spacing/typography
  • Responsive layout
  • Used shared design tokens

Optimizations:

  • Minimal rebuilds
  • Efficient state handling
  • Lightweight widget tree
  • Memoized heavy operations

Screenshots

image
image
image
image

Related Issues

Closes:

Checklist

Tests:

  • Yes
  • No (existing coverage sufficient + manual edge case testing)

Tested OS:

  • Windows
  • macOS
  • Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant