Skip to content

Commit

Permalink
Mosip 25778 technical story update the existing authentication audit …
Browse files Browse the repository at this point in the history
…end point to send hash of individual id taken from the session and also pass id type (mosip#705)

* moved id hash generation method to utility

* took id from session

* added unauthenticated API for audit

* MOSIP-25780 added junit

* MOSIP-25780 added junit for if condition

* fixed error message

* returned correct id and 400 status code

* created super exception classes to extend

* removed unused imports

* renamed (added prefix base)

* naming fixes

* configured exceptions with new exception base classes

* fixed error response

* fixed error response on validation

* moved getClientIp method to utility and used in audit API

* added junit test cases

* renamed audit request dto

* removed utilitiy

* fixed schema sache issue and added junit

* removed input required check

Co-authored-by: Ritik Jain <[email protected]>
Signed-off-by: kameshsr <[email protected]>
  • Loading branch information
2 people authored and kameshsr committed Oct 17, 2023
1 parent f9e2ae6 commit e04935f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ private List<String> doGetUiSchemaFilteredInputAttributes(String schemaType) thr
if(identityObj instanceof List) {
List<Map<String, Object>> identityList = (List<Map<String, Object>>) identityObj;
List<String> uiSchemaFilteredInputAttributesList = identityList.stream()
.filter(map -> Boolean.valueOf(String.valueOf(map.get(INPUT_REQUIRED))))
.filter(map -> !FILEUPLOAD.equals(map.get(CONTROL_TYPE)))
.flatMap(map -> {
String attribName = (String)map.get(ID);
Expand Down

0 comments on commit e04935f

Please sign in to comment.