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

Otp login + profile create or fetch #9

Merged
merged 40 commits into from
Nov 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
584e98a
support for opt based login and profile create or fetch flows.
Arkmati Oct 25, 2024
1846dd7
added service annotation in Utils
Arkmati Oct 25, 2024
0b042ac
minor changes to store userId properly in redis and read sessionId fr…
Arkmati Oct 25, 2024
49aee87
minor changes.
Arkmati Oct 25, 2024
6c5056f
minor change in logs in controller
Arkmati Oct 25, 2024
808c7e3
minor change in session management
Arkmati Oct 25, 2024
82750c3
changed sessionId cookie name, profile controller methods and check f…
Arkmati Oct 26, 2024
fe5ad84
changed generateOtp controllers to POST methods.
Arkmati Oct 26, 2024
865ceaf
added sessionId cookie in header.
Arkmati Oct 26, 2024
dd83ccc
changed setHeader to addHeader.
Arkmati Oct 26, 2024
b31df0c
changes in session and userId cookies.
Arkmati Oct 26, 2024
064cb4d
change in WSUtils to handle plain text response.
Arkmati Oct 26, 2024
c19e3c2
change in WSUtils to accept different responses.
Arkmati Oct 26, 2024
a3c15ac
Support for string and object type WS call.
Arkmati Oct 26, 2024
e62de87
changed way to parse string data.
Arkmati Oct 26, 2024
4fd0873
default value of object for returnClass.
Arkmati Oct 26, 2024
961b9e3
support for uuid WS calls.
Arkmati Oct 26, 2024
d865531
support for uuid WS calls.
Arkmati Oct 26, 2024
23b5ae6
minor change
Arkmati Oct 26, 2024
540d11a
change for handling errors in WSUtils
Arkmati Oct 26, 2024
4154e8a
minor change in create profile flow.
Arkmati Oct 26, 2024
dafd77d
reading UserId from message in WSUtils response.
Arkmati Oct 26, 2024
7d5172c
minor change.
Arkmati Oct 26, 2024
0a5fe8e
using textValue instead of asText
Arkmati Oct 26, 2024
49fcee3
error fix
Arkmati Oct 26, 2024
63289ee
string parse.
Arkmati Oct 26, 2024
afe31fa
changed transfer encoding value.
Arkmati Oct 26, 2024
48971a1
updated api service to not add common object in requests.
Arkmati Oct 27, 2024
1fe89df
minor change in WSUtils
Arkmati Oct 27, 2024
5b075a0
small change to handle new profile types and user id cookie.
Arkmati Nov 5, 2024
6178a60
small change in the delivery profile ddo keys to fetch user id by ema…
Arkmati Nov 5, 2024
9a48a43
changing samesite for user id cookie to none in header
Arkmati Nov 7, 2024
0b89722
minor changes to handle user id cookie.
Arkmati Nov 7, 2024
f5a064a
bug fix in marking user to be logged in when cookie is found.
Arkmati Nov 7, 2024
4d0d6b3
support Http CONFLICT error response custom handling.
Arkmati Nov 8, 2024
c11755b
Merge remote-tracking branch 'origin/Main' into feature/opt_login_and…
Arkmati Nov 14, 2024
d989752
removed comments and resolved merged conflicts.
Arkmati Nov 14, 2024
91e0ea9
Merge remote-tracking branch 'origin/Main' into feature/opt_login_and…
Arkmati Nov 14, 2024
a1bc5be
Added unit testcases for code coverage
Arkmati Nov 15, 2024
3443f9e
change in excluded packages
Arkmati Nov 15, 2024
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
Prev Previous commit
Next Next commit
minor change in logs in controller
  • Loading branch information
Arkmati committed Oct 25, 2024
commit 6c5056f03ed85315bb612d397e988ce6e649f68c
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ public CompletableFuture<ResponseEntity<JsonNode>> handleGetRequest(@PathVariabl
apiKey, (System.currentTimeMillis() - startTime));
setRequiredCookies(apiRequestResolver, request, response);
log.info("{} for sessionId {}, the following servlet response is being set {} for GET request",
apiRequestResolver.getLoggerString(), request.getSession().getId(), response);
apiRequestResolver.getLoggerString(), apiRequestResolver.getSessionId(), response);
return new ResponseEntity<>(resolvedResp.getRespData(), headers, resolvedResp.getStatusCode());
});
}
@@ -73,7 +73,7 @@ public CompletableFuture<ResponseEntity<JsonNode>> handlePostRequest(@PathVariab
apiKey, (System.currentTimeMillis() - startTime));
setRequiredCookies(apiRequestResolver, request, response);
log.info("{} for sessionId {}, the following servlet response is being set {} for POST request",
apiRequestResolver.getLoggerString(), request.getSession().getId(), response);
apiRequestResolver.getLoggerString(), apiRequestResolver.getSessionId(), response);
return new ResponseEntity<>(resolvedResp.getRespData(),headers, resolvedResp.getStatusCode());
});
}
@@ -92,7 +92,7 @@ public CompletableFuture<ResponseEntity<JsonNode>> handlePutRequest(@PathVariabl
apiKey, (System.currentTimeMillis() - startTime));
setRequiredCookies(apiRequestResolver, request, response);
log.info("{} for sessionId {}, the following servlet response is being set {} for PUT request",
apiRequestResolver.getLoggerString(), request.getSession().getId(), response);
apiRequestResolver.getLoggerString(), apiRequestResolver.getSessionId(), response);
return new ResponseEntity<>(resolvedResp.getRespData(),headers,resolvedResp.getStatusCode());
});
}
@@ -111,7 +111,7 @@ public CompletableFuture<ResponseEntity<JsonNode>> handlePatchRequest(@PathVaria
apiKey, (System.currentTimeMillis() - startTime));
setRequiredCookies(apiRequestResolver, request, response);
log.info("{} for sessionId {}, the following servlet response is being set {} for PATCH request",
apiRequestResolver.getLoggerString(), request.getSession().getId(), response);
apiRequestResolver.getLoggerString(), apiRequestResolver.getSessionId(), response);
return new ResponseEntity<>(resolvedResp.getRespData(), headers,resolvedResp.getStatusCode());
});
}
@@ -130,7 +130,7 @@ public CompletableFuture<ResponseEntity<JsonNode>> handleDeleteRequest(@PathVari
apiKey, (System.currentTimeMillis() - startTime));
setRequiredCookies(apiRequestResolver, request, response);
log.info("{} for sessionId {}, the following servlet response is being set {} for DELETE request",
apiRequestResolver.getLoggerString(), request.getSession().getId(), response);
apiRequestResolver.getLoggerString(), apiRequestResolver.getSessionId(), response);
return new ResponseEntity<>(resolvedResp.getRespData(), headers,resolvedResp.getStatusCode());
});
}
Loading