Refactor core functionality for Bewit token management - #27
Merged
Conversation
glucaci
commented
May 3, 2026
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.
- 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
…ash content for improved serialization
…nd related logic for cleaner configuration
…ng and add Snappier package for improved dependency management
…pendency management
Carael
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.