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

[feat] Implement Enhanced Authentication Flow and API Updates #59

Merged
merged 10 commits into from
Jan 24, 2025

Conversation

Aloento
Copy link
Member

@Aloento Aloento commented Jan 24, 2025

Summary of the Pull Request:

This pull request introduces the following key features and improvements:

  1. Environment Configuration Updates:

    • Updated backend URL in the environment example file for better clarity.
    • Added jwt-decode library to the package dependencies for improved JWT token handling.
  2. Proxy Configuration:

    • Added proxy configuration for the authentication endpoint to simplify request routing.
  3. Enhanced User Authentication Management:

    • Introduced a UserMgr class for managing user authentication using OIDC and JWT.
    • Implemented methods for signing in, handling authentication callbacks, and storing user session state in local storage.
    • Replaced WebStorageStateStore with a custom solution for improved user management.
  4. Improved Error Handling and Logging:

    • Enhanced error logging during the authentication flow for better debugging and troubleshooting.
  5. API Endpoint Updates:

    • Ensured compatibility with the latest backend changes related to API versioning.

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.
@Aloento Aloento added the gate Merge PR label Jan 24, 2025
@otc-zuul otc-zuul bot merged commit 099dcfb into main Jan 24, 2025
6 checks passed
@otc-zuul otc-zuul bot deleted the feat_auth branch January 24, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants