-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat] Implement Enhanced Authentication Flow and API Updates #59
Conversation
This file contains 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
Modifies backend URL in the environment example file for clarity. Adds jwt-decode library to package dependencies for improved token handling.
Implements user authentication flow using OIDC and JWT. Includes methods for signing in and handling callbacks. Stores user state in local storage for session management.
Replaces WebStorageStateStore with a custom UserMgr for better user management. Updates authentication flow to handle signin and signout callbacks more effectively. Enhances error logging for improved debugging.
Modifies fetch calls to use the new v2 API for incidents and components. Ensures compatibility with the latest backend changes. Relates to API versioning improvements.
Replaces the "/api" endpoint with "/v2" to target the local server for development purposes. This change facilitates easier testing and debugging by redirecting API calls to the local environment.
Eliminates SD_REDIRECT_URL and SD_LOGOUT_REDIRECT_URL from the configuration to streamline environment variables and reduce potential security risks.
Integrates Tailwind CSS by adding the '@tailwindcss/postcss' plugin to the PostCSS configuration. Updates various dependencies, including jiti and eslint, to their latest versions for improved performance and security. Enhances project compatibility with Tailwind CSS features.
anton-sidelnikov
approved these changes
Jan 24, 2025
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.
Summary of the Pull Request:
This pull request introduces the following key features and improvements:
Environment Configuration Updates:
jwt-decode
library to the package dependencies for improved JWT token handling.Proxy Configuration:
Enhanced User Authentication Management:
UserMgr
class for managing user authentication using OIDC and JWT.WebStorageStateStore
with a custom solution for improved user management.Improved Error Handling and Logging:
API Endpoint Updates: