@webda/auth 4.0.0-beta.12 → 4.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/authentication.service.d.ts.map +1 -1
- package/lib/authentication.service.js.map +1 -1
- package/lib/certificate/certificate.service.d.ts.map +1 -1
- package/lib/certificate/certificate.service.js.map +1 -1
- package/lib/compat/upgrade.d.ts.map +1 -1
- package/lib/compat/upgrade.js.map +1 -1
- package/lib/email/emailpassword.service.d.ts +15 -3
- package/lib/email/emailpassword.service.d.ts.map +1 -1
- package/lib/email/emailpassword.service.js +33 -5
- package/lib/email/emailpassword.service.js.map +1 -1
- package/lib/email/tokens.d.ts.map +1 -1
- package/lib/email/tokens.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/mfa/secondfactor.service.d.ts.map +1 -1
- package/lib/mfa/secondfactor.service.js.map +1 -1
- package/lib/mfa/sms.service.d.ts.map +1 -1
- package/lib/mfa/sms.service.js.map +1 -1
- package/lib/mfa/totp.service.d.ts.map +1 -1
- package/lib/mfa/totp.service.js.map +1 -1
- package/lib/oauth/oauth.service.d.ts +2 -0
- package/lib/oauth/oauth.service.d.ts.map +1 -1
- package/lib/oauth/oauth.service.js +2 -0
- package/lib/oauth/oauth.service.js.map +1 -1
- package/lib/provider.d.ts.map +1 -1
- package/lib/provider.js.map +1 -1
- package/lib/test/authtest.d.ts.map +1 -1
- package/lib/test/authtest.js.map +1 -1
- package/lib/test/emailtest.d.ts.map +1 -1
- package/lib/test/emailtest.js.map +1 -1
- package/lib/test/fakeoauth.service.d.ts.map +1 -1
- package/lib/test/fakeoauth.service.js.map +1 -1
- package/lib/test/mfauser.fixture.model.d.ts.map +1 -1
- package/lib/test/mfauser.fixture.model.js.map +1 -1
- package/lib/test/stubprovider.d.ts.map +1 -1
- package/lib/test/stubprovider.js.map +1 -1
- package/lib/test/v3.d.ts.map +1 -1
- package/lib/test/v3.js.map +1 -1
- package/lib/throttle.d.ts.map +1 -1
- package/lib/throttle.js.map +1 -1
- package/package.json +17 -17
- package/webda.module.json +194 -14
package/webda.module.json
CHANGED
|
@@ -255,6 +255,10 @@
|
|
|
255
255
|
},
|
|
256
256
|
"type": "array"
|
|
257
257
|
},
|
|
258
|
+
"baseUrl": {
|
|
259
|
+
"description": "Optional canonical origin (e.g. \"https://api.example.com\") used to build emailed verification and recovery links\ninstead of trusting the request Host header",
|
|
260
|
+
"type": "string"
|
|
261
|
+
},
|
|
258
262
|
"mailer": {
|
|
259
263
|
"default": "Mailer",
|
|
260
264
|
"description": "Mailer service name",
|
|
@@ -559,7 +563,14 @@
|
|
|
559
563
|
},
|
|
560
564
|
"Authentication.providers.input": {
|
|
561
565
|
"type": "object",
|
|
562
|
-
"properties": {}
|
|
566
|
+
"properties": {},
|
|
567
|
+
"x-webda-rest": {
|
|
568
|
+
"method": "get",
|
|
569
|
+
"template": "auth/providers",
|
|
570
|
+
"path": [],
|
|
571
|
+
"query": [],
|
|
572
|
+
"body": []
|
|
573
|
+
}
|
|
563
574
|
},
|
|
564
575
|
"Authentication.providers.output": {
|
|
565
576
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -601,14 +612,28 @@
|
|
|
601
612
|
},
|
|
602
613
|
"Authentication.me.input": {
|
|
603
614
|
"type": "object",
|
|
604
|
-
"properties": {}
|
|
615
|
+
"properties": {},
|
|
616
|
+
"x-webda-rest": {
|
|
617
|
+
"method": "get",
|
|
618
|
+
"template": "auth/me",
|
|
619
|
+
"path": [],
|
|
620
|
+
"query": [],
|
|
621
|
+
"body": []
|
|
622
|
+
}
|
|
605
623
|
},
|
|
606
624
|
"Authentication.me.output": {
|
|
607
625
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
608
626
|
},
|
|
609
627
|
"Authentication.logout.input": {
|
|
610
628
|
"type": "object",
|
|
611
|
-
"properties": {}
|
|
629
|
+
"properties": {},
|
|
630
|
+
"x-webda-rest": {
|
|
631
|
+
"method": "post",
|
|
632
|
+
"template": "auth/logout",
|
|
633
|
+
"path": [],
|
|
634
|
+
"query": [],
|
|
635
|
+
"body": []
|
|
636
|
+
}
|
|
612
637
|
},
|
|
613
638
|
"Authentication.logout.output": {
|
|
614
639
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -623,7 +648,16 @@
|
|
|
623
648
|
},
|
|
624
649
|
"required": [
|
|
625
650
|
"refreshToken"
|
|
626
|
-
]
|
|
651
|
+
],
|
|
652
|
+
"x-webda-rest": {
|
|
653
|
+
"method": "post",
|
|
654
|
+
"template": "auth/refresh",
|
|
655
|
+
"path": [],
|
|
656
|
+
"query": [],
|
|
657
|
+
"body": [
|
|
658
|
+
"refreshToken"
|
|
659
|
+
]
|
|
660
|
+
}
|
|
627
661
|
},
|
|
628
662
|
"Authentication.refresh.output": {
|
|
629
663
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -649,7 +683,14 @@
|
|
|
649
683
|
},
|
|
650
684
|
"Authentication.idents.input": {
|
|
651
685
|
"type": "object",
|
|
652
|
-
"properties": {}
|
|
686
|
+
"properties": {},
|
|
687
|
+
"x-webda-rest": {
|
|
688
|
+
"method": "get",
|
|
689
|
+
"template": "auth/idents",
|
|
690
|
+
"path": [],
|
|
691
|
+
"query": [],
|
|
692
|
+
"body": []
|
|
693
|
+
}
|
|
653
694
|
},
|
|
654
695
|
"Authentication.idents.output": {
|
|
655
696
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -700,7 +741,17 @@
|
|
|
700
741
|
"required": [
|
|
701
742
|
"provider",
|
|
702
743
|
"providerUid"
|
|
703
|
-
]
|
|
744
|
+
],
|
|
745
|
+
"x-webda-rest": {
|
|
746
|
+
"method": "post",
|
|
747
|
+
"template": "auth/idents/unlink",
|
|
748
|
+
"path": [],
|
|
749
|
+
"query": [],
|
|
750
|
+
"body": [
|
|
751
|
+
"provider",
|
|
752
|
+
"providerUid"
|
|
753
|
+
]
|
|
754
|
+
}
|
|
704
755
|
},
|
|
705
756
|
"Authentication.unlink.output": {
|
|
706
757
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -708,7 +759,14 @@
|
|
|
708
759
|
},
|
|
709
760
|
"CertificateProvider.link.input": {
|
|
710
761
|
"type": "object",
|
|
711
|
-
"properties": {}
|
|
762
|
+
"properties": {},
|
|
763
|
+
"x-webda-rest": {
|
|
764
|
+
"method": "post",
|
|
765
|
+
"template": "auth/certificate/link",
|
|
766
|
+
"path": [],
|
|
767
|
+
"query": [],
|
|
768
|
+
"body": []
|
|
769
|
+
}
|
|
712
770
|
},
|
|
713
771
|
"CertificateProvider.link.output": {
|
|
714
772
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -796,7 +854,17 @@
|
|
|
796
854
|
"required": [
|
|
797
855
|
"email",
|
|
798
856
|
"password"
|
|
799
|
-
]
|
|
857
|
+
],
|
|
858
|
+
"x-webda-rest": {
|
|
859
|
+
"method": "post",
|
|
860
|
+
"template": "auth/email/login",
|
|
861
|
+
"path": [],
|
|
862
|
+
"query": [],
|
|
863
|
+
"body": [
|
|
864
|
+
"email",
|
|
865
|
+
"password"
|
|
866
|
+
]
|
|
867
|
+
}
|
|
800
868
|
},
|
|
801
869
|
"EmailPasswordProvider.login.output": {
|
|
802
870
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -873,7 +941,19 @@
|
|
|
873
941
|
"required": [
|
|
874
942
|
"email",
|
|
875
943
|
"password"
|
|
876
|
-
]
|
|
944
|
+
],
|
|
945
|
+
"x-webda-rest": {
|
|
946
|
+
"method": "post",
|
|
947
|
+
"template": "auth/email/register",
|
|
948
|
+
"path": [],
|
|
949
|
+
"query": [],
|
|
950
|
+
"body": [
|
|
951
|
+
"email",
|
|
952
|
+
"password",
|
|
953
|
+
"token",
|
|
954
|
+
"profile"
|
|
955
|
+
]
|
|
956
|
+
}
|
|
877
957
|
},
|
|
878
958
|
"EmailPasswordProvider.register.output": {
|
|
879
959
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -887,7 +967,16 @@
|
|
|
887
967
|
},
|
|
888
968
|
"required": [
|
|
889
969
|
"email"
|
|
890
|
-
]
|
|
970
|
+
],
|
|
971
|
+
"x-webda-rest": {
|
|
972
|
+
"method": "post",
|
|
973
|
+
"template": "auth/email/verification",
|
|
974
|
+
"path": [],
|
|
975
|
+
"query": [],
|
|
976
|
+
"body": [
|
|
977
|
+
"email"
|
|
978
|
+
]
|
|
979
|
+
}
|
|
891
980
|
},
|
|
892
981
|
"EmailPasswordProvider.startVerification.output": {
|
|
893
982
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -902,7 +991,16 @@
|
|
|
902
991
|
},
|
|
903
992
|
"required": [
|
|
904
993
|
"token"
|
|
905
|
-
]
|
|
994
|
+
],
|
|
995
|
+
"x-webda-rest": {
|
|
996
|
+
"method": "post",
|
|
997
|
+
"template": "auth/email/verify",
|
|
998
|
+
"path": [],
|
|
999
|
+
"query": [],
|
|
1000
|
+
"body": [
|
|
1001
|
+
"token"
|
|
1002
|
+
]
|
|
1003
|
+
}
|
|
906
1004
|
},
|
|
907
1005
|
"EmailPasswordProvider.verify.output": {
|
|
908
1006
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -927,7 +1025,16 @@
|
|
|
927
1025
|
},
|
|
928
1026
|
"required": [
|
|
929
1027
|
"email"
|
|
930
|
-
]
|
|
1028
|
+
],
|
|
1029
|
+
"x-webda-rest": {
|
|
1030
|
+
"method": "post",
|
|
1031
|
+
"template": "auth/password/recovery",
|
|
1032
|
+
"path": [],
|
|
1033
|
+
"query": [],
|
|
1034
|
+
"body": [
|
|
1035
|
+
"email"
|
|
1036
|
+
]
|
|
1037
|
+
}
|
|
931
1038
|
},
|
|
932
1039
|
"EmailPasswordProvider.startRecovery.output": {
|
|
933
1040
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -946,7 +1053,17 @@
|
|
|
946
1053
|
"required": [
|
|
947
1054
|
"token",
|
|
948
1055
|
"password"
|
|
949
|
-
]
|
|
1056
|
+
],
|
|
1057
|
+
"x-webda-rest": {
|
|
1058
|
+
"method": "post",
|
|
1059
|
+
"template": "auth/password/recover",
|
|
1060
|
+
"path": [],
|
|
1061
|
+
"query": [],
|
|
1062
|
+
"body": [
|
|
1063
|
+
"token",
|
|
1064
|
+
"password"
|
|
1065
|
+
]
|
|
1066
|
+
}
|
|
950
1067
|
},
|
|
951
1068
|
"EmailPasswordProvider.recover.output": {
|
|
952
1069
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -960,12 +1077,75 @@
|
|
|
960
1077
|
},
|
|
961
1078
|
"next": {
|
|
962
1079
|
"type": "string"
|
|
1080
|
+
},
|
|
1081
|
+
"escrow": {
|
|
1082
|
+
"additionalProperties": false,
|
|
1083
|
+
"description": "Keyring key wrapped by a KDF-derived KEK (AES-GCM), the parameters are stored so they can evolve\n\n`kid` is the active key the keyring was encrypted for when the escrow was made, in clear and outside the AAD: the\nserver refuses an escrow made for another key than its active one (a device that missed a rotation).",
|
|
1084
|
+
"properties": {
|
|
1085
|
+
"ct": {
|
|
1086
|
+
"type": "string"
|
|
1087
|
+
},
|
|
1088
|
+
"iv": {
|
|
1089
|
+
"type": "string"
|
|
1090
|
+
},
|
|
1091
|
+
"kdf": {
|
|
1092
|
+
"description": "Supported password KDFs",
|
|
1093
|
+
"enum": [
|
|
1094
|
+
"argon2id",
|
|
1095
|
+
"pbkdf2-sha256"
|
|
1096
|
+
],
|
|
1097
|
+
"type": "string"
|
|
1098
|
+
},
|
|
1099
|
+
"kdfParams": {
|
|
1100
|
+
"type": "object"
|
|
1101
|
+
},
|
|
1102
|
+
"kid": {
|
|
1103
|
+
"description": "Active key id when the escrow was created",
|
|
1104
|
+
"type": "string"
|
|
1105
|
+
},
|
|
1106
|
+
"kind": {
|
|
1107
|
+
"enum": [
|
|
1108
|
+
"password",
|
|
1109
|
+
"recovery"
|
|
1110
|
+
],
|
|
1111
|
+
"type": "string"
|
|
1112
|
+
},
|
|
1113
|
+
"salt": {
|
|
1114
|
+
"type": "string"
|
|
1115
|
+
},
|
|
1116
|
+
"v": {
|
|
1117
|
+
"const": 1,
|
|
1118
|
+
"type": "number"
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"required": [
|
|
1122
|
+
"ct",
|
|
1123
|
+
"iv",
|
|
1124
|
+
"kdf",
|
|
1125
|
+
"kdfParams",
|
|
1126
|
+
"kid",
|
|
1127
|
+
"kind",
|
|
1128
|
+
"salt",
|
|
1129
|
+
"v"
|
|
1130
|
+
],
|
|
1131
|
+
"type": "object"
|
|
963
1132
|
}
|
|
964
1133
|
},
|
|
965
1134
|
"required": [
|
|
966
1135
|
"current",
|
|
967
1136
|
"next"
|
|
968
|
-
]
|
|
1137
|
+
],
|
|
1138
|
+
"x-webda-rest": {
|
|
1139
|
+
"method": "post",
|
|
1140
|
+
"template": "auth/password/change",
|
|
1141
|
+
"path": [],
|
|
1142
|
+
"query": [],
|
|
1143
|
+
"body": [
|
|
1144
|
+
"current",
|
|
1145
|
+
"next",
|
|
1146
|
+
"escrow"
|
|
1147
|
+
]
|
|
1148
|
+
}
|
|
969
1149
|
},
|
|
970
1150
|
"EmailPasswordProvider.changePassword.output": {
|
|
971
1151
|
"$schema": "http://json-schema.org/draft-07/schema#",
|