@strapi/plugin-users-permissions 4.25.21 → 4.25.23

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.
Files changed (27) hide show
  1. package/dist/_chunks/{index-gEkbV4F9.mjs → index--wWLZAMs.mjs} +2 -2
  2. package/dist/_chunks/{index-gEkbV4F9.mjs.map → index--wWLZAMs.mjs.map} +1 -1
  3. package/dist/_chunks/{index-TXvCramy.mjs → index-7jtnDf4p.mjs} +2 -2
  4. package/dist/_chunks/{index-TXvCramy.mjs.map → index-7jtnDf4p.mjs.map} +1 -1
  5. package/dist/_chunks/{index-b4wChiEY.js → index-8kzrt70D.js} +2 -2
  6. package/dist/_chunks/{index-b4wChiEY.js.map → index-8kzrt70D.js.map} +1 -1
  7. package/dist/_chunks/{index-eDOLWAV7.js → index-DiW6ewR1.js} +10 -10
  8. package/dist/_chunks/{index-eDOLWAV7.js.map → index-DiW6ewR1.js.map} +1 -1
  9. package/dist/_chunks/{index-6vUdu8my.js → index-JrkD5bN5.js} +2 -2
  10. package/dist/_chunks/{index-6vUdu8my.js.map → index-JrkD5bN5.js.map} +1 -1
  11. package/dist/_chunks/{index-KGe8mvqZ.js → index-UDmr9bPp.js} +2 -2
  12. package/dist/_chunks/{index-KGe8mvqZ.js.map → index-UDmr9bPp.js.map} +1 -1
  13. package/dist/_chunks/{index-gUNfzF88.mjs → index-l5A7Tjiq.mjs} +10 -10
  14. package/dist/_chunks/{index-gUNfzF88.mjs.map → index-l5A7Tjiq.mjs.map} +1 -1
  15. package/dist/_chunks/{index-_PJkAU_B.js → index-pEEKO4Ga.js} +2 -2
  16. package/dist/_chunks/{index-_PJkAU_B.js.map → index-pEEKO4Ga.js.map} +1 -1
  17. package/dist/_chunks/{index-oL1A5ghB.mjs → index-vRjKW1Li.mjs} +2 -2
  18. package/dist/_chunks/{index-oL1A5ghB.mjs.map → index-vRjKW1Li.mjs.map} +1 -1
  19. package/dist/_chunks/{index-rlXIaWJh.mjs → index-yYLeDDYr.mjs} +2 -2
  20. package/dist/_chunks/{index-rlXIaWJh.mjs.map → index-yYLeDDYr.mjs.map} +1 -1
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/package.json +6 -6
  24. package/server/bootstrap/index.js +13 -9
  25. package/server/services/providers-registry.js +468 -279
  26. package/server/utils/index.d.ts +2 -1
  27. package/server/bootstrap/grant-config.js +0 -140
@@ -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 providers;
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
- });