Skip to content

Fix Successful login being logged before login was successful#2003

Open
johanib wants to merge 1 commit into
mainfrom
feature/1742-consent-login-logfix
Open

Fix Successful login being logged before login was successful#2003
johanib wants to merge 1 commit into
mainfrom
feature/1742-consent-login-logfix

Conversation

@johanib
Copy link
Copy Markdown
Contributor

@johanib johanib commented May 19, 2026

Prior to this change, the logs logged login granted during the assertionConsumerService phase, before consent was given. This happened because the Success log was implemented as a output filter. This is no problem on its own, but, when the run_all_manipulations_prior_to_consent feature is enabled, the output filters are performed before consent is handled. This caused the Log line to be logged before the consent was handled.

This change removes the LogLogin output filter and moves the code to a separate log fuction, to be called from the correct step in the flow.

Fixes #1742

@johanib johanib force-pushed the feature/1742-consent-login-logfix branch 2 times, most recently from 60f516f to 4b0f4f5 Compare May 19, 2026 13:54
@johanib johanib requested a review from kayjoosten May 19, 2026 13:55
Prior to this change, the logs logged `login granted` during the assertionConsumerService phase, before consent was given.
This happened because the Success log was implemented as a output filter. This is no problem on its own, but, when the `run_all_manipulations_prior_to_consent` feature is enabled, the output filters are performed before consent is handled. This caused the Log line to be logged before the consent was handled.

This change removes the LogLogin output filter and moves the code to a separate log fuction, to be called from the correct step in the flow.

Fixes #1742
@johanib johanib force-pushed the feature/1742-consent-login-logfix branch from 4b0f4f5 to 4b3ab73 Compare May 19, 2026 13:57
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.

Log successful login only on success when AM before consent feature is enabled

1 participant