-
Notifications
You must be signed in to change notification settings - Fork 152
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
base: feature-amr
Are you sure you want to change the base?
Conversation
...v1/src/gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/AuthenticatorsApi.java
Outdated
Show resolved
Hide resolved
...v1/src/gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/AuthenticatorsApi.java
Outdated
Show resolved
Hide resolved
...gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/AuthenticatorsApiService.java
Outdated
Show resolved
Hide resolved
...gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/AuthenticatorsApiService.java
Show resolved
Hide resolved
.../carbon/identity/api/server/authenticators/v1/factories/AuthenticatorsApiServiceFactory.java
Show resolved
Hide resolved
.../src/gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/model/Authenticator.java
Outdated
Show resolved
Hide resolved
...1/src/gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/model/ConnectedApp.java
Outdated
Show resolved
Hide resolved
.../src/gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/model/ConnectedApps.java
Outdated
Show resolved
Hide resolved
...ators.v1/src/gen/java/org/wso2/carbon/identity/api/server/authenticators/v1/model/Error.java
Outdated
Show resolved
Hide resolved
.../wso2/carbon/identity/api/server/authenticators/v1/model/SystemLocalAuthenticatorUpdate.java
Show resolved
Hide resolved
.../wso2/carbon/identity/api/server/authenticators/v1/model/SystemLocalAuthenticatorUpdate.java
Show resolved
Hide resolved
...arbon/identity/api/server/authenticators/v1/model/UserDefinedLocalAuthenticatorCreation.java
Show resolved
Hide resolved
.../carbon/identity/api/server/authenticators/v1/model/UserDefinedLocalAuthenticatorUpdate.java
Outdated
Show resolved
Hide resolved
.../carbon/identity/api/server/authenticators/v1/core/ServerAuthenticatorManagementService.java
Outdated
Show resolved
Hide resolved
.../carbon/identity/api/server/authenticators/v1/core/ServerAuthenticatorManagementService.java
Show resolved
Hide resolved
...org/wso2/carbon/identity/api/server/authenticators/v1/impl/AuthenticatorsApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...org/wso2/carbon/identity/api/server/authenticators/v1/impl/AuthenticatorsApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...org/wso2/carbon/identity/api/server/authenticators/v1/impl/AuthenticatorsApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...org/wso2/carbon/identity/api/server/authenticators/v1/impl/AuthenticatorsApiServiceImpl.java
Outdated
Show resolved
Hide resolved
...arbon/identity/api/server/authenticators/v1/impl/LocalAuthenticatorConfigBuilderFactory.java
Outdated
Show resolved
Hide resolved
...org.wso2.carbon.identity.api.server.authenticators.v1/src/main/resources/authenticators.yaml
Outdated
Show resolved
Hide resolved
...src/gen/java/org/wso2/carbon/identity/api/server/configs/v1/model/AuthenticatorListItem.java
Show resolved
Hide resolved
...v1/src/gen/java/org/wso2/carbon/identity/api/server/idp/v1/model/FederatedAuthenticator.java
Outdated
Show resolved
Hide resolved
...v1/src/gen/java/org/wso2/carbon/identity/api/server/idp/v1/model/FederatedAuthenticator.java
Outdated
Show resolved
Hide resolved
...en/java/org/wso2/carbon/identity/api/server/idp/v1/model/FederatedAuthenticatorListItem.java
Outdated
Show resolved
Hide resolved
.../java/org/wso2/carbon/identity/api/server/idp/v1/model/FederatedAuthenticatorPUTRequest.java
Outdated
Show resolved
Hide resolved
...java/org/wso2/carbon/identity/api/server/idp/v1/model/FederatedUserDefinedAuthenticator.java
Outdated
Show resolved
Hide resolved
...java/org/wso2/carbon/identity/api/server/idp/v1/model/FederatedUserDefinedAuthenticator.java
Outdated
Show resolved
Hide resolved
.../src/gen/java/org/wso2/carbon/identity/api/server/idp/v1/model/IdentityProviderResponse.java
Outdated
Show resolved
Hide resolved
...arbon/identity/api/server/authenticators/v1/impl/LocalAuthenticatorConfigBuilderFactory.java
Show resolved
Hide resolved
.../carbon/identity/api/server/authenticators/v1/core/ServerAuthenticatorManagementService.java
Outdated
Show resolved
Hide resolved
.../wso2/carbon/identity/api/server/authenticators/v1/model/SystemLocalAuthenticatorUpdate.java
Show resolved
Hide resolved
.../wso2/carbon/identity/api/server/authenticators/v1/model/SystemLocalAuthenticatorUpdate.java
Outdated
Show resolved
Hide resolved
@@ -280,6 +281,32 @@ public Authenticator updateUserDefinedLocalAuthenticator( | |||
} | |||
} | |||
|
|||
public SystemLocalAuthenticatorUpdate updateSystemLocalAuthenticator(String authenticatorId, |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 ?
<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> |
There was a problem hiding this comment.
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 ?
Proposed Changes in this Pull Request
Related Issues