Skip to content

Commit

Permalink
Merge pull request #31 from project-sunbird/allowing-multiple-externa…
Browse files Browse the repository at this point in the history
…lids-for-user-api

Allowing multiple externalids for user api
  • Loading branch information
manzarul authored Jun 29, 2018
2 parents 34aa7fc + 76daa0b commit 513ab18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service/app/util/AuthenticationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class AuthenticationHelper {
private static CassandraOperation cassandraOperation = ServiceFactory.getInstance();
private static DbInfo userAuth = Util.dbInfoMap.get(JsonKey.USER_AUTH_DB);
public static final String KEY_SPACE_NAME = "sunbird";
public static final String USER_EXT_IDNT_TABLE = "user_external_identity";
private static EncryptionService encryptionService =
org.sunbird.common.models.util.datasecurity.impl.ServiceFactory.getEncryptionServiceInstance(
null);
Expand Down Expand Up @@ -202,7 +201,7 @@ public static Map<String, Object> getUserFromExternalId(String extId, String pro
JsonKey.EXTERNAL_ID,getEncryptedData(extId.toLowerCase()));
Response response =
cassandraOperation.getRecordsByCompositeKey(
KEY_SPACE_NAME, USER_EXT_IDNT_TABLE, externalIdReq);
KEY_SPACE_NAME, JsonKey.USR_EXT_IDNT_TABLE, externalIdReq);

List<Map<String, Object>> userRecordList =
(List<Map<String, Object>>) response.get(JsonKey.RESPONSE);
Expand Down

0 comments on commit 513ab18

Please sign in to comment.