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 customizable AMR to the authenticators #850

Draft
wants to merge 15 commits into
base: feature-amr
Choose a base branch
from

Conversation

Eranda2001
Copy link

@Eranda2001 Eranda2001 commented Feb 25, 2025

Proposed Changes in this Pull Request

  • Bring First Class Support for Customizable AMR Values

Related Issues

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2025

CLA assistant check
All committers have signed the CLA.

@Eranda2001 Eranda2001 marked this pull request as draft March 12, 2025 05:44
@@ -280,6 +281,32 @@ public Authenticator updateUserDefinedLocalAuthenticator(
}
}

public SystemLocalAuthenticatorUpdate updateSystemLocalAuthenticator(String authenticatorId,
Copy link
Author

Choose a reason for hiding this comment

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

Add comments

LocalAuthenticatorConfig localAuthenticatorConfig = new LocalAuthenticatorConfig();
localAuthenticatorConfig.setName(existingAuthenticator.getName());
localAuthenticatorConfig.setAmrValue(systemConfig.getAmrValue());
log.info("AMR Value: "+ systemConfig.getAmrValue());
Copy link
Author

Choose a reason for hiding this comment

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

Add a log with more info about the context

@@ -47,26 +52,26 @@ public AuthenticatorsApiServiceImpl() {
}

@Override
public Response authenticatorsGet(String filter, Integer limit, Integer offset) {
Copy link
Author

Choose a reason for hiding this comment

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

Change the order to it was

@Override
public Response updateSystemLocalAuthenticatorAmrValueById(String authenticatorId, SystemLocalAuthenticatorUpdate systemLocalAuthenticatorUpdate) {

return Response.ok().entity(authenticatorManagementService.updateSystemLocalAuthenticator(authenticatorId, systemLocalAuthenticatorUpdate)).build();
Copy link
Author

Choose a reason for hiding this comment

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

Check Formatting

localAuthenticatorConfig.setAmrValue(systemConfig.getAmrValue());
log.info("AMR Value: "+ systemConfig.getAmrValue());
LocalAuthenticatorConfig updatedConfig = applicationAuthenticatorService
.updateAuthenticatorAmrValue(localAuthenticatorConfig, tenantDomain);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pass the existing authenticator object with the updated AMR values here ?

Comment on lines +561 to +572
<dependency>
<groupId>org.wso2.carbon.identity.framework</groupId>
<artifactId>org.wso2.carbon.identity.user.registration.mgt</artifactId>
<version>${carbon.identity.framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.framework</groupId>
<artifactId>org.wso2.carbon.identity.user.registration.engine</artifactId>
<version>${carbon.identity.framework.version}</version>
<scope>provided</scope>
</dependency>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the registration service required for these changes ?

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.

5 participants