-
Notifications
You must be signed in to change notification settings - Fork 10
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
pam/userselection: Do not draw the model when not enabled #627
Conversation
When the model is not enabled we may still have it focused, since it's the default initial model that we have in the CLI mode. This may cause to a visual issue (not a security one, since the input is disabled for this): - login with the UI using a preset user - while the client is connecting to the server we may show a "frozen" user selection view with the pre-selected user written in. This is not really something we need to show, so do not draw anything until we've something to show.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #627 +/- ##
==========================================
+ Coverage 82.99% 83.04% +0.05%
==========================================
Files 80 80
Lines 8584 8589 +5
Branches 75 75
==========================================
+ Hits 7124 7133 +9
+ Misses 1129 1126 -3
+ Partials 331 330 -1 ☔ View full report in Codecov by Sentry. |
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.
LGTM!
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 seems to be less frequent, but sometimes I still see the "Select your authentication method" for a split second when using login
, before it asks me for the local password
You can see it here (in the third try) Screencast.from.2024-11-08.13-53-37.trimmed.mp4 |
Well... That's another issue 😅. This PR covers the user selection, not the broker selection... And that one isn't likely also even "fixable", unless we accept adding a timeout not showing anything until we're in a stage for some human time... So open a new issue, please |
I see
Done, that's https://warthogs.atlassian.net/browse/UDENG-5170 |
When the model is not enabled we may still have it focused, since it's the default initial model that we have in the CLI mode.
This may cause to a visual issue (not a security one, since the input is disabled for this):
This is not really something we need to show, so do not draw anything until we've something to show.
This can be replicated easily by applying:
And then running
env [email protected] go run -tags=withpamrunner ./pam/tools/pam-client login
UDENG-5166