Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
userManagement
Commits
2e337eff
Commit
2e337eff
authored
1 year ago
by
Mahesh Maney R
Browse files
Options
Download
Patches
Plain Diff
adding email instaed of username to save user info <ManeyMR>.
parent
5d3e79de
main
UAT_quick_fix_keycloak
UPHRH_8164_ErrorHandling
dev
dev_stable
devops-patch
feature_update_fee
rahu_error_message_fix
uat
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/tarento/upsmf/userManagement/utility/KeycloakUserUpdater.java
+3
-2
...nto/upsmf/userManagement/utility/KeycloakUserUpdater.java
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/tarento/upsmf/userManagement/utility/KeycloakUserUpdater.java
+
3
−
2
View file @
2e337eff
...
...
@@ -73,8 +73,9 @@ public class KeycloakUserUpdater {
ArrayNode
credentials
=
(
ArrayNode
)
requestBody
.
get
(
"credentials"
);
logger
.
info
(
"credentials[] {}"
,
credentials
);
if
(!
credentials
.
isEmpty
()
&&
!(
credentials
.
get
(
0
).
get
(
"value"
).
asText
().
isBlank
()))
{
logger
.
info
(
"userName : {}, credentials.get(0).get(\"value\").asText() : {}"
,
userName
,
credentials
.
get
(
0
).
get
(
"value"
).
asText
());
String
value
=
keycloakUserCredentialPersister
.
persistUserInfo
(
userName
,
credentials
.
get
(
0
).
get
(
"value"
).
asText
());
String
email
=
requestBody
.
get
(
"email"
).
asText
();
logger
.
info
(
"email : {}, credentials.get(0).get(\"value\").asText() : {}"
,
email
,
credentials
.
get
(
0
).
get
(
"value"
).
asText
());
String
value
=
keycloakUserCredentialPersister
.
persistUserInfo
(
email
,
credentials
.
get
(
0
).
get
(
"value"
).
asText
());
logger
.
info
(
"persistUserInfo response {}"
,
value
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets