Conversation
This commit refactors the auth module to improve maintainability and remove unused code. Key changes include: - Removed JWKS and token verifier functionality - Simplified session management by removing JoseJwtSessionManager - Updated config handling to
…ter maintainability Restructured the constructors across multiple services and providers to explicitly assign injected dependencies to class properties. This improves code readability and maintainability by making dependency assignments more explicit and consistent. Changes include removing private constructor parameters and assigning them directly to class properties.
This commit refactors the authentication system to use Awilix for dependency injection, replacing direct service injections. It introduces a container to manage dependencies, improving maintainability and testability. Key changes include: - Removed direct injections of `DynamicAuthManager` and `InternalAdminManager`. - Added `AuthCradle` type to define container dependencies. - Updated NestJS adapters to use the container for service resolution. - Removed deprecated JWKS-related files and services. - Enhanced the `InternalAdminManager` with additional API key configuration options.
…y injection Add Google OAuth provider to the auth service and update the README to reflect the shift from JWKS to dependency injection support. This enhances modularity and testability while simplifying the authentication flow.
- Uncomment and enable Google provider registration in AuthConfigService - Make `providers` property public in DynamicAuthManager - Remove `providers` parameter from DynamicAuthManager constructor - Add `registerProvider` method to DynamicAuthManager - Move provider registration logic from container to authManager - Remove redundant provider initialization loop
Remove rate limiter functionality from DynamicAuthManager and update provider types to include BaseOAuthProvider. Clean up unused code and improve type safety in the auth module.
Simplify initialization logic by removing unnecessary async/await usage in initializeContainer and related methods. This reduces complexity and aligns with synchronous operations in the codebase.
…nents This commit introduces a comprehensive documentation framework built on AnalogJS. Key additions include: - New content files for various framework sections (Core, CLI, Framework, MDX) - Layout components for documentation pages (header, footer, sidebar) - Navigation tree component for structured content browsing - Styling and theme configuration for consistent UI - Integration with PrismJS for syntax highlighting and Mermaid for diagrams The framework provides a robust foundation for creating and organizing documentation content with markdown support, responsive design, and interactive features.
Add new configuration files such as .prettierrc, .npmrc, babel.config.json, and pnpm-workspace.yaml. Remove unused .gitkeep files and other unnecessary files across the project. This cleanup improves project structure and ensures proper configuration for development.
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.
No description provided.