Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
NAS-133624 / 25.10 / Support for single time user passwords in STIG mode #11427
NAS-133624 / 25.10 / Support for single time user passwords in STIG mode #11427
Changes from 10 commits
29fd8f7
f310b2f
9bff50f
465dae9
fa6d1c6
8c0364a
5a7dba1
00eef7e
0e34b3e
02289dc
353db45
798333e
6c95183
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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's kinda weird to have this here so that two other pieces of code can talk to each other.
See if it's possible to inject
TwoFactorGuardService
inFirstLoginDialogComponent
directly and have that property there directly.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.
@undsoft I tried to move it to the
TwoFactorGuardService
but faced issues.The main issue is that we should reset that value if user logs out, because if it's a new login with
OTPW
- the full screen dialog will not show up since password is considered as already changed.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.
FirstLoginDialogComponent
is always shown when it's either otpw user or 2FA setup is needed? And then lettingFirstLoginDialogComponent
decide which steps to show.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.
@undsoft
We have such modal as well, if user missed 2fa configuration:
And then navigated to the
2fa setup page
.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.
@undsoft - for STIG user, it's impossible to login without one time password or 2fa.
So if I changed password but didn't set up 2fa, I'll see the following.
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.
So I've updated this dialog to work for both:
OtpwUser
andNonOtpwUser
, but it's useless at this point.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.
What I mean is that we can get rid of
showTwoFactorWarning()
and only have one branch. If this is an OTPW user OR if 2FA setup is required for normal user, take them toFirstLoginDialogComponent
.If this is an OTPW user, show password form, if this is a normal user, only show the 2FA part.
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.
Okay, got it, probably I need to add more descriptions there as well.
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.
Can we request it as a separate ticket? I think it worth a separate ticket since a lot of changes were made already as for this one ticket.
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.
@undsoft
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 would make your code simpler, but okay, please create a ticket then.
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.
Sure 👌