Kusuma04-dev opened a new pull request, #3150:
URL: https://github.com/apache/incubator-kie-tools/pull/3150

   closes https://github.com/apache/incubator-kie-tools/issues/3136.
   This PR adds support for renewing authentication sessions for both cloud 
providers and Git providers.
   * A "Re-authenticate" button is now available for invalid sessions, enabling 
users to easily renew their credentials.
   * This feature is accessible in the "My Profile", "Share" modal, and for 
cloud providers under Dev Deployments.
   GitLab support for auth session renewal is not yet implemented.
This PR is 
marked as draft until the corresponding GitLab renewal support is merged.
Once 
available, the necessary changes will be added.
   
   PFA examples where re-authentication can be done:
   <img width="1302" alt="Screenshot 2025-05-20 at 9 30 08 PM" 
src="https://github.com/user-attachments/assets/8db14a78-a07c-4fe4-9692-1f4f66ac1abc";
 />
   <img width="1295" alt="Screenshot 2025-05-20 at 9 30 33 PM" 
src="https://github.com/user-attachments/assets/83b2df60-d9be-4877-9229-2d4043a7b750";
 />
   <img width="1258" alt="Screenshot 2025-05-20 at 9 30 49 PM" 
src="https://github.com/user-attachments/assets/05836a0f-e534-478f-bc46-3c9d12919705";
 />
   
   
   How to Test
   1. Create and Connect:
       * Generate a token for a specific Auth Provider (e.g., OpenShift, 
GitHub).
       * Use it to connect an account.
   2. Invalidate the Session:
       * Manually delete or revoke the token from the Auth Provider’s dashboard 
to simulate token expiration or invalidation.
   3. Trigger Re-authentication:
       * Open the app and navigate to:
           * My Profile
           * Share Modal
           * Dev Deployments (for cloud providers)
       * You should see a "Re-authenticate" button next to the invalid session.
   4. Renew the Session:
       * Click "Re-authenticate" and provide a new valid token.
   5. Verify:
       * Confirm that:
           * The session is marked valid again.
           * Operations (deployments, share, Apply Accelerators) now work 
correctly using the updated session.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to