-
-
Notifications
You must be signed in to change notification settings - Fork 945
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
web: provide 'show password' button #10337
Merged
kensternberg-authentik
merged 74 commits into
main
from
web/cf/provide-show-password-button
Jul 16, 2024
Merged
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
3146e5a
web: fix esbuild issue with style sheets
kensternberg-authentik fe52f44
Merge branch 'main' into dev
kensternberg-authentik e505f27
Merge branch 'main' into dev
kensternberg-authentik 5090621
Merge branch 'main' into dev
kensternberg-authentik 035bda4
Merge branch 'main' into dev
kensternberg-authentik 2d0117d
Merge branch 'main' into dev
kensternberg-authentik 22cb5b7
Merge branch 'main' into dev
kensternberg-authentik 8b4e036
Merge branch 'main' into dev
kensternberg-authentik db96e1a
Merge branch 'main' into dev
kensternberg-authentik 8946b81
Merge branch 'main' into dev
kensternberg-authentik 30beca9
Merge branch 'main' into dev
kensternberg-authentik 5d84082
Merge branch 'main' into dev
kensternberg-authentik a7e3dca
Merge branch 'main' into dev
kensternberg-authentik 2d254d6
Merge branch 'main' into dev
kensternberg-authentik 3f95020
Merge branch 'main' into dev
kensternberg-authentik a056703
Merge branch 'main' into dev
kensternberg-authentik fc00bde
Merge branch 'main' into dev
kensternberg-authentik 7123b2c
Merge branch 'main' into dev
kensternberg-authentik 5d4c380
Merge branch 'main' into dev
kensternberg-authentik 66cefcc
Merge branch 'main' into dev
kensternberg-authentik 875fc5c
Merge branch 'main' into dev
kensternberg-authentik c84be1d
Merge branch 'main' into dev
kensternberg-authentik b08dcc2
Merge branch 'main' into dev
kensternberg-authentik 272fdc5
Merge branch 'main' into dev
kensternberg-authentik 23665d1
Merge branch 'main' into dev
kensternberg-authentik cacdf64
Merge branch 'main' into dev
kensternberg-authentik 085debf
Merge branch 'main' into dev
kensternberg-authentik f19ed14
Merge branch 'main' into dev
kensternberg-authentik ac4ba5d
Merge branch 'main' into dev
kensternberg-authentik 98503f6
Merge branch 'main' into dev
kensternberg-authentik 2d94b16
Merge branch 'main' into dev
kensternberg-authentik 34de6bf
Merge branch 'main' into dev
kensternberg-authentik ca42506
Merge branch 'main' into dev
kensternberg-authentik 2a96900
Merge branch 'main' into dev
kensternberg-authentik 9acebec
Merge branch 'main' into dev
kensternberg-authentik 8248163
Merge branch 'main' into dev
kensternberg-authentik ee37e92
Merge branch 'main' into dev
kensternberg-authentik e1d565d
Merge branch 'main' into dev
kensternberg-authentik 3d532d4
Merge branch 'main' into dev
kensternberg-authentik fffc8c7
Merge branch 'main' into dev
kensternberg-authentik 3fae9e5
Merge branch 'main' into dev
kensternberg-authentik 09803fe
Merge branch 'main' into dev
kensternberg-authentik 5752497
Merge branch 'main' into dev
kensternberg-authentik 61eb9fa
Merge branch 'main' into dev
kensternberg-authentik 3ff20ca
Merge branch 'main' into dev
kensternberg-authentik 5b132c8
Merge branch 'main' into dev
kensternberg-authentik 2488eb9
Merge branch 'main' into dev
kensternberg-authentik 312f364
Merge branch 'main' into dev
kensternberg-authentik fcab990
Merge branch 'main' into dev
kensternberg-authentik 10bfc4e
erge branch 'main' into dev
kensternberg-authentik c49185d
Merge branch 'main' into dev
kensternberg-authentik 7b208d9
Merge branch 'main' into dev
kensternberg-authentik 75b605f
Merge branch 'main' into dev
kensternberg-authentik 186e1bf
Merge branch 'main' into dev
kensternberg-authentik be9b44a
Merge branch 'main' into dev
kensternberg-authentik 44e4a5a
Merge branch 'main' into dev
kensternberg-authentik 833317c
Merge branch 'main' into dev
kensternberg-authentik db059d9
Merge branch 'main' into dev
kensternberg-authentik fec46df
Merge branch 'main' into dev
kensternberg-authentik 720f175
Merge branch 'main' into dev
kensternberg-authentik e70c5a1
Merge branch 'main' into dev
kensternberg-authentik 7a4fdc8
web: provide `show password` on login page
kensternberg-authentik 5a340a5
web: comment doesn't need to be exposed. It's sufficient where it is .
kensternberg-authentik 492d00d
web: fix button rendering issues
kensternberg-authentik 99fd1a9
web: provide `show password` on login page
kensternberg-authentik 587ec68
ensure the tests pass; quibbling over the wording of the admin field …
kensternberg-authentik 0b05d43
Removed some manually identified fluff.
kensternberg-authentik 067d4e4
web: break out `show password`-enabled input field into its own compo…
kensternberg-authentik a6eb120
Merge branch 'main' into web/cf/provide-show-password-button
kensternberg-authentik 3bc1a78
Merge branch 'main' into web/cf/provide-show-password-button
kensternberg-authentik 7719cfc
I guess 'challenge type' has been eliminated as a field.
kensternberg-authentik c5a65f7
web: update PasswordStageForm according to lit-analyzer
kensternberg-authentik f4c8624
Another lit-analyze error found.
kensternberg-authentik a09afd3
Merge branch 'main' into web/cf/provide-show-password-button
kensternberg-authentik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ class IdentificationChallenge(Challenge): | |
|
||
user_fields = ListField(child=CharField(), allow_empty=True, allow_null=True) | ||
password_fields = BooleanField() | ||
allow_show_password = BooleanField(default=False) | ||
application_pre = CharField(required=False) | ||
flow_designation = ChoiceField(FlowDesignation.choices) | ||
|
||
|
@@ -197,6 +198,8 @@ def get_challenge(self) -> Challenge: | |
"primary_action": self.get_primary_action(), | ||
"user_fields": current_stage.user_fields, | ||
"password_fields": bool(current_stage.password_stage), | ||
"allow_show_password": bool(current_stage.password_stage) | ||
and current_stage.password_stage.allow_show_password, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't normally argue with |
||
"show_source_labels": current_stage.show_source_labels, | ||
"flow_designation": self.executor.flow.designation, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
authentik/stages/password/migrations/0009_passwordstage_allow_show_password.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 5.0.6 on 2024-07-02 18:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_password", "0008_replace_inbuilt"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="passwordstage", | ||
name="allow_show_password", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="When enabled, provides a 'show password' button with the password input field.", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Genuinely surprised codespell didn't throw a fit here.