Skip to content
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

Fail earlier if user is not allowed to log in #338

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adombeck
Copy link
Contributor

⚠️ This is based on #334, please review and merge that one first

We want the user to perform the OIDC authentication for auditing and logging purposes, but we don't need them to choose a local password before we tell them that they are not allowed to log in.

UDENG-5868

To 1. allow the user/admin to figure out why authentication is denied,
and 2. log failed login attempts, which is security critical (security
logging failure is in the OWASP top 10, see
https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures).
To have more complete logs of failed login attempts.
Print the IsAuthenticated result for debugging.
We want the user to perform the OIDC authentication for auditing and
logging purposes, but we don't need them to choose a local password
before we tell them that they are not allowed to log in.
@adombeck adombeck requested a review from a team as a code owner January 24, 2025 16:56
@adombeck adombeck marked this pull request as draft January 24, 2025 16:57
@3v1n0
Copy link
Collaborator

3v1n0 commented Jan 24, 2025

IIRC we didn't want to inform at all whether an user was available or not (so not sure we should log), but this still happens after the first stage (device auth), right?

@adombeck adombeck marked this pull request as ready for review January 24, 2025 22:49
@adombeck
Copy link
Contributor Author

this still happens after the first stage (device auth), right?

Yes, it's after the device authentication

@adombeck adombeck marked this pull request as draft January 24, 2025 22:49
@adombeck
Copy link
Contributor Author

Converting to draft again because some tests need to be updated

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