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

Add Support for Connected Apps in Custom Local Authenticators #7481

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Shenali-SJ
Copy link
Contributor

Purpose

This PR updates the custom local authenticator UI components to support connected apps.

API to fetch connected apps related to a custom authenticator: authenticators/custom/<custom-local-authenticator-id>/connected-apps

The application edit functionality has been updated to allow redirection to the authenticator edit page. Previously, it always redirected to the IDP edit page by default.

IMPORTANT: Currently, the backend functionality related to this improvement is unavailable in the product. PR needs to be merged once the above task is done.

Related Issues


Follow-up Tasks
The source code for the application's authentication functionality needs to be refactored to use generic variable names for connection-related operations. Currently, the variable names are specific to IDPs, but they should be updated to support both IDPs and local authentication.

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified -> NO
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

Copy link

codecov bot commented Feb 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.98%. Comparing base (30be807) to head (548cdb0).
Report is 28 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7481   +/-   ##
=======================================
  Coverage   41.98%   41.98%           
=======================================
  Files          42       42           
  Lines         936      936           
  Branches      214      233   +19     
=======================================
  Hits          393      393           
  Misses        543      543           
Flag Coverage Δ
@wso2is/core 41.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

* @param authenticatorId - ID of the local authenticator.
* @returns A promise containing the response.
*/
export const getConnectedAppsOfAuthenticator = (authenticatorId: string): Promise<any> => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we define a custom hook with SWR for this?

Copy link
Contributor

@pavinduLakshan pavinduLakshan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add changeset too

@Shenali-SJ Shenali-SJ marked this pull request as draft February 5, 2025 05:59
@wso2-jenkins-bot
Copy link
Contributor

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants