Skip to content

GUACAMOLE-2296: Broadcast guacLoginUpdated event on token renewal#1225

Open
arulrajnet wants to merge 1 commit into
apache:mainfrom
arulrajnet:GUACAMOLE-2296-broadcast-guac-login-updated-event
Open

GUACAMOLE-2296: Broadcast guacLoginUpdated event on token renewal#1225
arulrajnet wants to merge 1 commit into
apache:mainfrom
arulrajnet:GUACAMOLE-2296-broadcast-guac-login-updated-event

Conversation

@arulrajnet

Copy link
Copy Markdown

When a server re-issues the same authentication token (token renewal/extension scenario), emit the new 'guacLoginUpdated' event to notify listeners that an existing session has been renewed. This distinguishes token renewal from new login events and enables downstream applications to detect session re-authentication.

Changes:

  • Add guacLoginUpdated broadcast in authenticate() when token remains unchanged
  • Document new event in service javadoc
  • Update comment to reflect event emission behavior

When a server re-issues the same authentication token (token renewal/extension
scenario), emit the new 'guacLoginUpdated' event to notify listeners that an
existing session has been renewed. This distinguishes token renewal from new
login events and enables downstream applications to detect session re-authentication.

Changes:
- Add guacLoginUpdated broadcast in authenticate() when token remains unchanged
- Document new event in service javadoc
- Update comment to reflect event emission behavior
@necouchman

Copy link
Copy Markdown
Contributor

@arulrajnet I'm not sure I understand the point of just adding this definition - it doesn't look like it actually gets used or consumed anywhere?? The other events that are broadcast - for example, guacLoginPending - have matching $rootScope.on() calls that then actually do something when the event is broadcast. Do you have some follow-on changes that will make use of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants