~mna/straw

ref: b0209209fcdbef033e3369655913d8b9d1c2b1c5 straw/doc/auth.toml -rw-r--r-- 1.2 KiB View raw
b0209209Martin Angers doc: more auth user pool config 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# TODO: no SMS support for now

name = "pool_name"
mfa = "on|off|optional"
alias_attributes = ["email"]
username_attributes = []
auto_verified_attributes = []

[verification_message]
  default_email_option = "CONFIRM_WITH_LINK"
  email_message = ""
  email_subject = ""

[admin]
  allow_admin_create_user_only = true
  unused_account_validity = "3d"
  invite_email_message = ""
  invite_email_subject = ""

[device]
  challenge_required_on_new_device = true
  device_only_remembered_on_user_prompt = true

[tags]
  x = "y"

[password_policy]
  minimum_length = 10
  require_lowercase = true
  require_numbers = true
  require_symbols = true
  require_uppercase = true

[triggers]
  create_auth_challenge = "fn_id"
  custom_message = "fn_id"
  define_auth_challenge = "fn_id"
  post_authentication = "fn_id"
  post_confirmation = "fn_id"
  pre_authentication = "fn_id"
  pre_sign_up = "fn_id"
  pre_token_generation = "fn_id"
  user_migration = "fn_id"
  verify_auth_challenge_response = "fn_id"

[[schema_attributes]]
  data_type = "Boolean|Number|String|DateTime"
  developer_only = false
  mutable = true
  name = ""
  required = true
  # for strings
  min_length = 3
  max_length = 10
  # for numbers
  min_value = 1
  max_value = 10