@strapi/plugin-users-permissions 5.0.0-rc.0 → 5.0.0-rc.2
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/dist/_chunks/{index-iaebB1BT.js → index-B1qzCQd5.js} +8 -8
- package/dist/_chunks/{index-iaebB1BT.js.map → index-B1qzCQd5.js.map} +1 -1
- package/dist/_chunks/{index-DVEZVDjs.js → index-BrHOhLiu.js} +2 -2
- package/dist/_chunks/{index-DVEZVDjs.js.map → index-BrHOhLiu.js.map} +1 -1
- package/dist/_chunks/{index-DCFIfSfa.mjs → index-CGwt3Ia4.mjs} +3 -3
- package/dist/_chunks/{index-DCFIfSfa.mjs.map → index-CGwt3Ia4.mjs.map} +1 -1
- package/dist/_chunks/{index-iSLj9xJT.js → index-Cp4WQ7CY.js} +2 -2
- package/dist/_chunks/{index-iSLj9xJT.js.map → index-Cp4WQ7CY.js.map} +1 -1
- package/dist/_chunks/{index-DRoVF6Y7.js → index-CxY6jE0v.js} +7 -7
- package/dist/_chunks/{index-DRoVF6Y7.js.map → index-CxY6jE0v.js.map} +1 -1
- package/dist/_chunks/{index-iMO1GC3n.js → index-D-gXJApn.js} +4 -4
- package/dist/_chunks/{index-iMO1GC3n.js.map → index-D-gXJApn.js.map} +1 -1
- package/dist/_chunks/{index-Cf2sMpyd.mjs → index-DUjTQKud.mjs} +8 -8
- package/dist/_chunks/{index-Cf2sMpyd.mjs.map → index-DUjTQKud.mjs.map} +1 -1
- package/dist/_chunks/{index-qhy_K2pJ.mjs → index-DkSluM9h.mjs} +2 -2
- package/dist/_chunks/{index-qhy_K2pJ.mjs.map → index-DkSluM9h.mjs.map} +1 -1
- package/dist/_chunks/{index-zmcUQlrv.mjs → index-Dt46aAk-.mjs} +3 -3
- package/dist/_chunks/{index-zmcUQlrv.mjs.map → index-Dt46aAk-.mjs.map} +1 -1
- package/dist/_chunks/{index-B9OX-a4A.mjs → index-_XxxzBHB.mjs} +2 -2
- package/dist/_chunks/{index-B9OX-a4A.mjs.map → index-_XxxzBHB.mjs.map} +1 -1
- package/dist/_chunks/{index-8-k5RCnK-BHUgmsKx.mjs → index-m_rp3iqs-BHUgmsKx.mjs} +1 -1
- package/dist/_chunks/{index-8-k5RCnK-BHUgmsKx.mjs.map → index-m_rp3iqs-BHUgmsKx.mjs.map} +1 -1
- package/dist/_chunks/{index-8-k5RCnK-qR3QHvSP.js → index-m_rp3iqs-qR3QHvSP.js} +1 -1
- package/dist/_chunks/{index-8-k5RCnK-qR3QHvSP.js.map → index-m_rp3iqs-qR3QHvSP.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +4 -4
- package/server/bootstrap/index.js +13 -9
- package/server/services/providers-registry.js +465 -275
- package/server/utils/index.d.ts +2 -1
- package/server/bootstrap/grant-config.js +0 -140
package/server/utils/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as user from '../services/user';
|
|
|
3
3
|
import * as role from '../services/role';
|
|
4
4
|
import * as jwt from '../services/jwt';
|
|
5
5
|
import * as providers from '../services/providers';
|
|
6
|
+
import * as providersRegistry from '../services/providers-registry';
|
|
6
7
|
import * as permission from '../services/permission';
|
|
7
8
|
|
|
8
9
|
type S = {
|
|
@@ -11,7 +12,7 @@ type S = {
|
|
|
11
12
|
user: typeof user;
|
|
12
13
|
jwt: typeof jwt;
|
|
13
14
|
providers: typeof providers;
|
|
14
|
-
['providers-registry']: typeof
|
|
15
|
+
['providers-registry']: typeof providersRegistry;
|
|
15
16
|
permission: typeof permission;
|
|
16
17
|
};
|
|
17
18
|
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = (baseURL) => ({
|
|
4
|
-
email: {
|
|
5
|
-
enabled: true,
|
|
6
|
-
icon: 'envelope',
|
|
7
|
-
},
|
|
8
|
-
discord: {
|
|
9
|
-
enabled: false,
|
|
10
|
-
icon: 'discord',
|
|
11
|
-
key: '',
|
|
12
|
-
secret: '',
|
|
13
|
-
callback: `${baseURL}/discord/callback`,
|
|
14
|
-
scope: ['identify', 'email'],
|
|
15
|
-
},
|
|
16
|
-
facebook: {
|
|
17
|
-
enabled: false,
|
|
18
|
-
icon: 'facebook-square',
|
|
19
|
-
key: '',
|
|
20
|
-
secret: '',
|
|
21
|
-
callback: `${baseURL}/facebook/callback`,
|
|
22
|
-
scope: ['email'],
|
|
23
|
-
},
|
|
24
|
-
google: {
|
|
25
|
-
enabled: false,
|
|
26
|
-
icon: 'google',
|
|
27
|
-
key: '',
|
|
28
|
-
secret: '',
|
|
29
|
-
callback: `${baseURL}/google/callback`,
|
|
30
|
-
scope: ['email'],
|
|
31
|
-
},
|
|
32
|
-
github: {
|
|
33
|
-
enabled: false,
|
|
34
|
-
icon: 'github',
|
|
35
|
-
key: '',
|
|
36
|
-
secret: '',
|
|
37
|
-
callback: `${baseURL}/github/callback`,
|
|
38
|
-
scope: ['user', 'user:email'],
|
|
39
|
-
},
|
|
40
|
-
microsoft: {
|
|
41
|
-
enabled: false,
|
|
42
|
-
icon: 'windows',
|
|
43
|
-
key: '',
|
|
44
|
-
secret: '',
|
|
45
|
-
callback: `${baseURL}/microsoft/callback`,
|
|
46
|
-
scope: ['user.read'],
|
|
47
|
-
},
|
|
48
|
-
twitter: {
|
|
49
|
-
enabled: false,
|
|
50
|
-
icon: 'twitter',
|
|
51
|
-
key: '',
|
|
52
|
-
secret: '',
|
|
53
|
-
callback: `${baseURL}/twitter/callback`,
|
|
54
|
-
},
|
|
55
|
-
instagram: {
|
|
56
|
-
enabled: false,
|
|
57
|
-
icon: 'instagram',
|
|
58
|
-
key: '',
|
|
59
|
-
secret: '',
|
|
60
|
-
callback: `${baseURL}/instagram/callback`,
|
|
61
|
-
scope: ['user_profile'],
|
|
62
|
-
},
|
|
63
|
-
vk: {
|
|
64
|
-
enabled: false,
|
|
65
|
-
icon: 'vk',
|
|
66
|
-
key: '',
|
|
67
|
-
secret: '',
|
|
68
|
-
callback: `${baseURL}/vk/callback`,
|
|
69
|
-
scope: ['email'],
|
|
70
|
-
},
|
|
71
|
-
twitch: {
|
|
72
|
-
enabled: false,
|
|
73
|
-
icon: 'twitch',
|
|
74
|
-
key: '',
|
|
75
|
-
secret: '',
|
|
76
|
-
callback: `${baseURL}/twitch/callback`,
|
|
77
|
-
scope: ['user:read:email'],
|
|
78
|
-
},
|
|
79
|
-
linkedin: {
|
|
80
|
-
enabled: false,
|
|
81
|
-
icon: 'linkedin',
|
|
82
|
-
key: '',
|
|
83
|
-
secret: '',
|
|
84
|
-
callback: `${baseURL}/linkedin/callback`,
|
|
85
|
-
scope: ['r_liteprofile', 'r_emailaddress'],
|
|
86
|
-
},
|
|
87
|
-
cognito: {
|
|
88
|
-
enabled: false,
|
|
89
|
-
icon: 'aws',
|
|
90
|
-
key: '',
|
|
91
|
-
secret: '',
|
|
92
|
-
subdomain: 'my.subdomain.com',
|
|
93
|
-
callback: `${baseURL}/cognito/callback`,
|
|
94
|
-
scope: ['email', 'openid', 'profile'],
|
|
95
|
-
},
|
|
96
|
-
reddit: {
|
|
97
|
-
enabled: false,
|
|
98
|
-
icon: 'reddit',
|
|
99
|
-
key: '',
|
|
100
|
-
secret: '',
|
|
101
|
-
state: true,
|
|
102
|
-
callback: `${baseURL}/reddit/callback`,
|
|
103
|
-
scope: ['identity'],
|
|
104
|
-
},
|
|
105
|
-
auth0: {
|
|
106
|
-
enabled: false,
|
|
107
|
-
icon: '',
|
|
108
|
-
key: '',
|
|
109
|
-
secret: '',
|
|
110
|
-
subdomain: 'my-tenant.eu',
|
|
111
|
-
callback: `${baseURL}/auth0/callback`,
|
|
112
|
-
scope: ['openid', 'email', 'profile'],
|
|
113
|
-
},
|
|
114
|
-
cas: {
|
|
115
|
-
enabled: false,
|
|
116
|
-
icon: 'book',
|
|
117
|
-
key: '',
|
|
118
|
-
secret: '',
|
|
119
|
-
callback: `${baseURL}/cas/callback`,
|
|
120
|
-
scope: ['openid email'], // scopes should be space delimited
|
|
121
|
-
subdomain: 'my.subdomain.com/cas',
|
|
122
|
-
},
|
|
123
|
-
patreon: {
|
|
124
|
-
enabled: false,
|
|
125
|
-
icon: '',
|
|
126
|
-
key: '',
|
|
127
|
-
secret: '',
|
|
128
|
-
callback: `${baseURL}/patreon/callback`,
|
|
129
|
-
scope: ['identity', 'identity[email]'],
|
|
130
|
-
},
|
|
131
|
-
keycloak: {
|
|
132
|
-
enabled: false,
|
|
133
|
-
icon: '',
|
|
134
|
-
key: '',
|
|
135
|
-
secret: '',
|
|
136
|
-
subdomain: 'myKeycloakProvider.com/realms/myrealm',
|
|
137
|
-
callback: `${baseURL}/keycloak/callback`,
|
|
138
|
-
scope: ['openid', 'email', 'profile'],
|
|
139
|
-
},
|
|
140
|
-
});
|