@medusajs/types 1.12.0-snapshot-20240523101006 → 1.12.0-snapshot-20240523103337
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth/common/auth-identity.d.ts +22 -0
- package/dist/auth/common/auth-identity.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +31 -5
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/index.d.ts +0 -2
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +0 -2
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/service.d.ts +11 -0
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/common/config-module.d.ts +0 -37
- package/dist/common/config-module.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/auth/provider.d.ts +0 -19
- package/dist/auth/provider.d.ts.map +0 -1
- package/dist/auth/provider.js +0 -3
- package/dist/auth/provider.js.map +0 -1
- package/dist/auth/providers/emailpass.d.ts +0 -8
- package/dist/auth/providers/emailpass.d.ts.map +0 -1
- package/dist/auth/providers/emailpass.js +0 -3
- package/dist/auth/providers/emailpass.js.map +0 -1
- package/dist/auth/providers/index.d.ts +0 -2
- package/dist/auth/providers/index.d.ts.map +0 -1
- package/dist/auth/providers/index.js +0 -18
- package/dist/auth/providers/index.js.map +0 -1
@@ -18,6 +18,11 @@ export type AuthIdentityDTO = {
|
|
18
18
|
* provider, the `entity_id` would be the user's email.
|
19
19
|
*/
|
20
20
|
entity_id: string;
|
21
|
+
/**
|
22
|
+
* The scope of the auth identity. For example,
|
23
|
+
* `admin` or `store`.
|
24
|
+
*/
|
25
|
+
scope: string;
|
21
26
|
/**
|
22
27
|
* Holds custom data related to the provider in key-value pairs.
|
23
28
|
*/
|
@@ -26,6 +31,10 @@ export type AuthIdentityDTO = {
|
|
26
31
|
* Holds custom data related to the user in key-value pairs.
|
27
32
|
*/
|
28
33
|
user_metadata: Record<string, unknown>;
|
34
|
+
/**
|
35
|
+
* Holds custom data related to the third-party app in key-value pairs.
|
36
|
+
*/
|
37
|
+
app_metadata: Record<string, unknown>;
|
29
38
|
};
|
30
39
|
/**
|
31
40
|
* @interface
|
@@ -47,6 +56,11 @@ export type CreateAuthIdentityDTO = {
|
|
47
56
|
* provider, the `entity_id` would be the user's email.
|
48
57
|
*/
|
49
58
|
entity_id: string;
|
59
|
+
/**
|
60
|
+
* The scope of the auth identity. For example,
|
61
|
+
* `admin` or `store`.
|
62
|
+
*/
|
63
|
+
scope: string;
|
50
64
|
/**
|
51
65
|
* Holds custom data related to the provider in key-value pairs.
|
52
66
|
*/
|
@@ -55,6 +69,10 @@ export type CreateAuthIdentityDTO = {
|
|
55
69
|
* Holds custom data related to the user in key-value pairs.
|
56
70
|
*/
|
57
71
|
user_metadata?: Record<string, unknown>;
|
72
|
+
/**
|
73
|
+
* Holds custom data related to the third-party app in key-value pairs.
|
74
|
+
*/
|
75
|
+
app_metadata?: Record<string, unknown>;
|
58
76
|
};
|
59
77
|
/**
|
60
78
|
* @interface
|
@@ -74,6 +92,10 @@ export type UpdateAuthIdentityDTO = {
|
|
74
92
|
* Holds custom data related to the user in key-value pairs.
|
75
93
|
*/
|
76
94
|
user_metadata?: Record<string, unknown>;
|
95
|
+
/**
|
96
|
+
* Holds custom data related to the third-party app in key-value pairs.
|
97
|
+
*/
|
98
|
+
app_metadata?: Record<string, unknown>;
|
77
99
|
};
|
78
100
|
/**
|
79
101
|
* The filters to apply on the retrieved auth identity.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-identity.d.ts","sourceRoot":"","sources":["../../../src/auth/common/auth-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,M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AAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,2BAA2B,CAAC;IACnD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC7B"}
|
@@ -37,6 +37,28 @@ export type AuthenticationResponse = {
|
|
37
37
|
*/
|
38
38
|
successRedirectUrl?: string;
|
39
39
|
};
|
40
|
+
/**
|
41
|
+
* @interface
|
42
|
+
*
|
43
|
+
* The configurations of the `providers` option
|
44
|
+
* passed to the Auth Module.
|
45
|
+
*/
|
46
|
+
export type AuthModuleProviderConfig = {
|
47
|
+
/**
|
48
|
+
* The provider's name.
|
49
|
+
*/
|
50
|
+
name: string;
|
51
|
+
/**
|
52
|
+
* The scopes configuration of that provider.
|
53
|
+
*/
|
54
|
+
scopes: Record<string, AuthProviderScope>;
|
55
|
+
};
|
56
|
+
/**
|
57
|
+
* @interface
|
58
|
+
*
|
59
|
+
* The scope configurations of an auth provider.
|
60
|
+
*/
|
61
|
+
export type AuthProviderScope = Record<string, unknown>;
|
40
62
|
/**
|
41
63
|
* @interface
|
42
64
|
*
|
@@ -47,22 +69,26 @@ export type AuthenticationInput = {
|
|
47
69
|
/**
|
48
70
|
* URL of the incoming authentication request.
|
49
71
|
*/
|
50
|
-
url
|
72
|
+
url: string;
|
51
73
|
/**
|
52
74
|
* Headers of incoming authentication request.
|
53
75
|
*/
|
54
|
-
headers
|
76
|
+
headers: Record<string, string>;
|
55
77
|
/**
|
56
78
|
* Query params of the incoming authentication request.
|
57
79
|
*/
|
58
|
-
query
|
80
|
+
query: Record<string, string>;
|
59
81
|
/**
|
60
82
|
* Body of the incoming authentication request.
|
61
83
|
*/
|
62
|
-
body
|
84
|
+
body: Record<string, string>;
|
85
|
+
/**
|
86
|
+
* Scope for the authentication request.
|
87
|
+
*/
|
88
|
+
authScope: string;
|
63
89
|
/**
|
64
90
|
* Protocol of the incoming authentication request (For example, `https`).
|
65
91
|
*/
|
66
|
-
protocol
|
92
|
+
protocol: string;
|
67
93
|
};
|
68
94
|
//# sourceMappingURL=provider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
package/dist/auth/index.d.ts
CHANGED
package/dist/auth/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
package/dist/auth/index.js
CHANGED
@@ -16,6 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./service"), exports);
|
18
18
|
__exportStar(require("./common"), exports);
|
19
|
-
__exportStar(require("./provider"), exports);
|
20
|
-
__exportStar(require("./providers"), exports);
|
21
19
|
//# sourceMappingURL=index.js.map
|
package/dist/auth/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB"}
|
package/dist/auth/service.d.ts
CHANGED
@@ -34,6 +34,7 @@ export interface IAuthModuleService extends IModuleService {
|
|
34
34
|
* headers: req.headers,
|
35
35
|
* query: req.query,
|
36
36
|
* body: req.body,
|
37
|
+
* authScope: "admin",
|
37
38
|
* protocol: req.protocol,
|
38
39
|
* } as AuthenticationInput)
|
39
40
|
* ```
|
@@ -67,6 +68,7 @@ export interface IAuthModuleService extends IModuleService {
|
|
67
68
|
* headers: req.headers,
|
68
69
|
* query: req.query,
|
69
70
|
* body: req.body,
|
71
|
+
* authScope: "admin",
|
70
72
|
* protocol: req.protocol,
|
71
73
|
* } as AuthenticationInput)
|
72
74
|
* ```
|
@@ -166,10 +168,12 @@ export interface IAuthModuleService extends IModuleService {
|
|
166
168
|
* {
|
167
169
|
* provider: "emailpass",
|
168
170
|
* entity_id: "user@example.com",
|
171
|
+
* scope: "admin",
|
169
172
|
* },
|
170
173
|
* {
|
171
174
|
* provider: "google",
|
172
175
|
* entity_id: "user@gmail.com",
|
176
|
+
* scope: "email profile",
|
173
177
|
* },
|
174
178
|
* ])
|
175
179
|
*/
|
@@ -185,6 +189,7 @@ export interface IAuthModuleService extends IModuleService {
|
|
185
189
|
* const authIdentity = await authModuleService.create({
|
186
190
|
* provider: "emailpass",
|
187
191
|
* entity_id: "user@example.com",
|
192
|
+
* scope: "admin",
|
188
193
|
* })
|
189
194
|
*/
|
190
195
|
create(data: CreateAuthIdentityDTO, sharedContext?: Context): Promise<AuthIdentityDTO>;
|
@@ -199,6 +204,9 @@ export interface IAuthModuleService extends IModuleService {
|
|
199
204
|
* const authIdentities = await authModuleService.update([
|
200
205
|
* {
|
201
206
|
* id: "authusr_123",
|
207
|
+
* app_metadata: {
|
208
|
+
* test: true,
|
209
|
+
* },
|
202
210
|
* },
|
203
211
|
* ])
|
204
212
|
*/
|
@@ -213,6 +221,9 @@ export interface IAuthModuleService extends IModuleService {
|
|
213
221
|
* @example
|
214
222
|
* const authIdentity = await authModuleService.update({
|
215
223
|
* id: "authusr_123",
|
224
|
+
* app_metadata: {
|
225
|
+
* test: true,
|
226
|
+
* },
|
216
227
|
* })
|
217
228
|
*/
|
218
229
|
update(data: UpdateAuthIdentityDTO, sharedContext?: Context): Promise<AuthIdentityDTO>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/auth/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/auth/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,OAA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;;;;;OAoBG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAAE,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC,CAAA;IAE7B;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC,CAAA;IAE3B;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAAE,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC,CAAA;IAE7B;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC,CAAA;IAE3B;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9D"}
|
@@ -684,34 +684,6 @@ export type ProjectConfigOptions = {
|
|
684
684
|
* ```
|
685
685
|
*/
|
686
686
|
adminCors: string;
|
687
|
-
/**
|
688
|
-
* Optionally you can specify the supported authentication providers per actor type (such as user, customer, or any custom actors).
|
689
|
-
* For example, you only want to allow SSO logins for `users` to the admin, while you want to allow email/password logins for `customers` to the storefront.
|
690
|
-
*
|
691
|
-
* `authMethodsPerActor` is a a map where the actor type (eg. 'user') is the key, and an array of supported auth providers as the value.
|
692
|
-
*
|
693
|
-
*
|
694
|
-
* @example
|
695
|
-
* Some example values of common use cases:
|
696
|
-
*
|
697
|
-
* Then, set the configuration in `medusa-config.js`:
|
698
|
-
*
|
699
|
-
* ```js title="medusa-config.js"
|
700
|
-
* module.exports = {
|
701
|
-
* projectConfig: {
|
702
|
-
* http: {
|
703
|
-
* authMethodsPerActor: {
|
704
|
-
* user: ['sso'],
|
705
|
-
* customer: ["emailpass", "google"]
|
706
|
-
* },
|
707
|
-
* },
|
708
|
-
* // ...
|
709
|
-
* },
|
710
|
-
* // ...
|
711
|
-
* }
|
712
|
-
* ```
|
713
|
-
*/
|
714
|
-
authMethodsPerActor: Record<string, string[]>;
|
715
687
|
};
|
716
688
|
};
|
717
689
|
/**
|
@@ -871,15 +843,6 @@ export type ConfigModule = {
|
|
871
843
|
* :::
|
872
844
|
*/
|
873
845
|
featureFlags: Record<string, boolean | string>;
|
874
|
-
/**
|
875
|
-
* @ignore
|
876
|
-
*
|
877
|
-
* @privateRemarks
|
878
|
-
* Since this is a temporary config, maybe let's not include it in the generated reference for now.
|
879
|
-
*/
|
880
|
-
directories?: {
|
881
|
-
srcDir?: string;
|
882
|
-
};
|
883
846
|
};
|
884
847
|
export type PluginDetails = {
|
885
848
|
resolve: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C,CAAA;AAED;;;;GA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mDG;QACH,SAAS,EAAE,MAAM,CAAA;QACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAmDG;QACH,SAAS,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAA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,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACjC,GACD,MAAM,CACT,EAAE,CAAA;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,OAAO,GAAG,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
package/package.json
CHANGED
package/dist/auth/provider.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import { AuthIdentityDTO, AuthenticationInput, AuthenticationResponse, CreateAuthIdentityDTO } from "./common";
|
2
|
-
export interface AuthIdentityProviderService {
|
3
|
-
retrieve: (selector: {
|
4
|
-
entity_id: string;
|
5
|
-
provider: string;
|
6
|
-
}) => Promise<AuthIdentityDTO>;
|
7
|
-
create: (data: CreateAuthIdentityDTO) => Promise<AuthIdentityDTO>;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* ## Overview
|
11
|
-
*
|
12
|
-
* Authentication provider interface for the auth module.
|
13
|
-
*
|
14
|
-
*/
|
15
|
-
export interface IAuthProvider {
|
16
|
-
authenticate(data: AuthenticationInput, authIdentityProviderService: AuthIdentityProviderService): Promise<AuthenticationResponse>;
|
17
|
-
validateCallback(data: AuthenticationInput, authIdentityProviderService: AuthIdentityProviderService): Promise<AuthenticationResponse>;
|
18
|
-
}
|
19
|
-
//# sourceMappingURL=provider.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/auth/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,2BAA2B;IAE1C,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACnB,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;KACjB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;CAClE;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,CACV,IAAI,EAAE,mBAAmB,EACzB,2BAA2B,EAAE,2BAA2B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAClC,gBAAgB,CACd,IAAI,EAAE,mBAAmB,EACzB,2BAA2B,EAAE,2BAA2B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACnC"}
|
package/dist/auth/provider.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/auth/provider.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"emailpass.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/emailpass.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;KACV,CAAA;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"emailpass.js","sourceRoot":"","sources":["../../../src/auth/providers/emailpass.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./emailpass"), exports);
|
18
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
|