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

Bump the version and update getIdVClaims method #172

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public List<VerificationClaimResponse> getIdVClaims(String userId, String idvPro
int tenantId = getTenantId();
try {
idVClaims = IdentityVerificationServiceHolder.getIdentityVerificationManager().
getIdVClaims(userId, idvProviderId, tenantId);
getIdVClaims(userId, idvProviderId, null, tenantId);
} catch (IdentityVerificationException e) {
if (IdentityVerificationConstants.ErrorMessage.ERROR_INVALID_USER_ID.getCode().equals(e.getErrorCode())) {
throw handleIdVException(e, Constants.ErrorMessage.ERROR_CODE_USER_ID_NOT_FOUND, userId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import java.util.List;
import javax.ws.rs.core.Response;

import static org.wso2.carbon.identity.api.user.common.ContextLoader.getUserIdFromContext;

/**
* This class implements the DefaultApiServiceImpl interface.
*/
Expand All @@ -44,7 +42,7 @@ public class DefaultApiServiceImpl implements DefaultApiService {
public Response addIdVClaim(String userId, List<VerificationClaimRequest> verificationClaimRequest) {

List<VerificationClaimResponse> idvAddClaimResponse =
identityVerificationService.addIdVClaims(getUserIdFromContext(), verificationClaimRequest);
identityVerificationService.addIdVClaims(userId, verificationClaimRequest);
return Response.ok().entity(idvAddClaimResponse).build();
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
<identity.totp.version>3.3.1</identity.totp.version>
<identity.backup.code.version>0.0.4</identity.backup.code.version>
<lombok.version>1.18.20</lombok.version>
<identity.verification.version>1.0.2</identity.verification.version>
<identity.verification.version>1.0.3</identity.verification.version>
<maven.checkstyleplugin.excludes>**/gen/**/*</maven.checkstyleplugin.excludes>
<commons-lang.wso2.version>2.6.0.wso2v1</commons-lang.wso2.version>
<mavan.findbugsplugin.exclude.file>findbugs-exclude-filter.xml</mavan.findbugsplugin.exclude.file>
Expand Down
Loading