Skip to content

Commit

Permalink
Add note about adminEventsExpiration attribute to acme-internal.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdarimont committed Sep 11, 2024
1 parent 7e59830 commit 9280163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/stage/dev/realms/acme-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ eventsExpiration: 10368000
# enabledEventTypes: [ "SEND_RESET_PASSWORD", "UPDATE_CONSENT_ERROR", "GRANT_CONSENT", ... ]
adminEventsEnabled: false
adminEventsDetailsEnabled: false
# Note adminEventsExpired is stored as realm attribute
# adminEventsExpiration: 3667

smtpServer:
replyToDisplayName: "Acme Employee Support"
port: 1025
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class AcmeExecuteActionsActionTokenHandler extends ExecuteActionsActionTo
public AuthenticationSessionModel startFreshAuthenticationSession(ExecuteActionsActionToken token, ActionTokenContext<ExecuteActionsActionToken> tokenContext) {
AuthenticationSessionModel authSession = super.startFreshAuthenticationSession(token, tokenContext);

boolean remainSingedIn = false; // set to true to remain signed in after auth
boolean remainSingedIn = true; // set to true to remain signed in after auth
boolean remainSignedInAfterExecuteActions = tokenContext.getRealm().getAttribute("acme.remainSignedInAfterExecuteActions", remainSingedIn);

if (remainSignedInAfterExecuteActions) {
Expand Down

0 comments on commit 9280163

Please sign in to comment.