Skip to content

Refactor core functionality for Bewit token management - #27

Merged
glucaci merged 19 commits into
masterfrom
refactor-v7
May 8, 2026
Merged

Refactor core functionality for Bewit token management#27
glucaci merged 19 commits into
masterfrom
refactor-v7

Conversation

@glucaci

@glucaci glucaci commented May 3, 2026

Copy link
Copy Markdown
Member
  • Introduced new exceptions: BewitInvalidException and BewitNotFoundException for better error handling.
  • Added ExpiryMode enum to control token expiration strategies.
  • Implemented PayloadBuilder for configuring token options and nonce repository.
  • Created PayloadRegistrationHelper for registering payloads with dependency injection.
  • Developed VariablesProvider for generating timestamps and unique identifiers.
  • Added BewitAttribute for method-level authorization in HotChocolate.
  • Implemented middleware for extracting Bewit tokens from HTTP requests.
  • Created MongoDB storage options and repository for nonce management.
  • Added integration tests for generating and validating Bewit tokens.
  • Enhanced serialization and deserialization of Bewit tokens.

glucaci and others added 19 commits May 3, 2026 18:18
- Introduced new exceptions: BewitInvalidException and BewitNotFoundException for better error handling.
- Added ExpiryMode enum to control token expiration strategies.
- Implemented PayloadBuilder for configuring token options and nonce repository.
- Created PayloadRegistrationHelper for registering payloads with dependency injection.
- Developed VariablesProvider for generating timestamps and unique identifiers.
- Added BewitAttribute for method-level authorization in HotChocolate.
- Implemented middleware for extracting Bewit tokens from HTTP requests.
- Created MongoDB storage options and repository for nonce management.
- Added integration tests for generating and validating Bewit tokens.
- Enhanced serialization and deserialization of Bewit tokens.

Co-authored-by: Copilot <copilot@github.com>
…; update authorization middleware to standardize response codes; add unit tests for serializer and nonce repository functionality.

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…ferences and streamline service configurations

Co-authored-by: Copilot <copilot@github.com>
…settings.json binding, introduce token revocation functionality, and implement validation for nonce repository requirements.

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…tionOptions, update middleware and service configurations, and enhance tests for improved functionality

Co-authored-by: Copilot <copilot@github.com>
…dleware integration, and enhance configuration support in appsettings.json

Co-authored-by: Copilot <copilot@github.com>
…group builder methods, enhance README with usage examples, and introduce unit tests for validation scenarios

Co-authored-by: Copilot <copilot@github.com>
…port header and query string sources across middleware and filters
…atements for token extraction from headers and query strings
…middleware instantiation for improved debugging
…om middleware and tests for cleaner integration
…ng and add Snappier package for improved dependency management
@glucaci
glucaci merged commit cf2dcf7 into master May 8, 2026
1 check passed
@glucaci
glucaci deleted the refactor-v7 branch May 8, 2026 08:01
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.

2 participants