Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stages/prompt: add basic file field (#3156)
add basic file field Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
- Loading branch information
Showing
9 changed files
with
142 additions
and
20 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
authentik/stages/prompt/migrations/0008_alter_prompt_type.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,48 @@ | ||
# Generated by Django 4.0.5 on 2022-06-26 21:27 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_prompt", "0007_prompt_placeholder_expression"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="prompt", | ||
name="type", | ||
field=models.CharField( | ||
choices=[ | ||
("text", "Text: Simple Text input"), | ||
( | ||
"text_read_only", | ||
"Text (read-only): Simple Text input, but cannot be edited.", | ||
), | ||
( | ||
"username", | ||
"Username: Same as Text input, but checks for and prevents duplicate usernames.", | ||
), | ||
("email", "Email: Text field with Email type."), | ||
( | ||
"password", | ||
"Password: Masked input, password is validated against sources. Policies still have to be applied to this Stage. If two of these are used in the same stage, they are ensured to be identical.", | ||
), | ||
("number", "Number"), | ||
("checkbox", "Checkbox"), | ||
("date", "Date"), | ||
("date-time", "Date Time"), | ||
( | ||
"file", | ||
"File: File upload for arbitrary files. File content will be available in flow context as data-URI", | ||
), | ||
("separator", "Separator: Static Separator Line"), | ||
("hidden", "Hidden: Hidden field, can be used to insert data into form."), | ||
("static", "Static: Static value, displayed as-is."), | ||
("ak-locale", "authentik: Selection of locales authentik supports"), | ||
], | ||
max_length=100, | ||
), | ||
), | ||
] |
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
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"ES2020", | ||
"ESNext", | ||
"DOM", | ||
"DOM.Iterable", | ||
"WebWorker" | ||
], | ||
"plugins": [ | ||
|
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