forked from 2factorauth/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 112
/
websites_schema.yml
73 lines (73 loc) · 1.84 KB
/
websites_schema.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
type: map
mapping:
"websites":
type: seq
sequence:
- type: map
name: Website
mapping:
"name":
type: str
required: yes
unique: yes
"url":
type: str
pattern: /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/
required: yes
unique: yes
"img":
type: str
pattern: /^[a-z0-9_\-\+]+\.png/
required: yes
"tfa":
type: bool
required: yes
"software":
type: bool
pattern: /true/
"hardware":
type: bool
pattern: /true/
"otp":
type: bool
pattern: /true/
"u2f":
type: bool
pattern: /true/
"multipleu2f":
type: bool
pattern: /true/
"passwordless":
type: bool
pattern: /true/
"sms":
type: bool
pattern: /true/
"phone":
type: bool
pattern: /true/
"email":
type: bool
pattern: /true/
"exceptions":
type: map
mapping:
"text":
type: str
required: yes
"doc":
type: str
"twitter":
type: str
pattern: /(\w){1,15}$/
"facebook":
type: str
pattern: /(\w){1,50}$/
"email_address":
type: str
pattern: /\A([\w+\-].?)+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i
"status":
type: str
pattern: /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/
"lang":
type: str