-
Notifications
You must be signed in to change notification settings - Fork 17
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
[CLOUDTRUST-2296] Add a method on account API to send execute actions email #26
Conversation
} | ||
int expiration = Time.currentTime() + lifespan; | ||
String redirectUri = null; | ||
String clientId = Constants.ACCOUNT_MANAGEMENT_CLIENT_ID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand where does this Constants come from ... I don't see it in imports neither in package. What am I missing ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It comes from org.keycloak.models
(the code to send the mail is mainly copied from Keycloak)
.setUser(user) | ||
.sendExecuteActions(link, TimeUnit.SECONDS.toMinutes(lifespan)); | ||
|
||
//audit.user(user).detail(Details.EMAIL, user.getEmail()).detail(Details.CODE_ID, accessCode.getCodeId()).success(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove and/or convert into standard event
|
||
//audit.user(user).detail(Details.EMAIL, user.getEmail()).detail(Details.CODE_ID, accessCode.getCodeId()).success(); | ||
|
||
//adminEvent.operation(OperationType.ACTION).resourcePath(session.getContext().getUri()).success(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retest OK!
No description provided.