@strapi/plugin-users-permissions 0.0.0-113ff29005 → 0.0.0-2c43eb4e39368fbef1fbcff97335117bd8c4c7c9

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.
@@ -152,7 +152,7 @@ const AdvancedSettingsPage = () => {
152
152
  type="submit"
153
153
  disabled={!canUpdate}
154
154
  startIcon={<Check />}
155
- size="L"
155
+ size="S"
156
156
  >
157
157
  {formatMessage({ id: 'global.save', defaultMessage: 'Save' })}
158
158
  </Button>
@@ -131,7 +131,7 @@ const RoleListPage = () => {
131
131
  })}
132
132
  primaryAction={
133
133
  <CheckPermissions permissions={permissions.createRole}>
134
- <Button onClick={handleNewRoleClick} startIcon={<Plus />} size="L">
134
+ <Button onClick={handleNewRoleClick} startIcon={<Plus />} size="S">
135
135
  {formatMessage({
136
136
  id: getTrad('List.button.roles'),
137
137
  defaultMessage: 'Add new role',
@@ -44,7 +44,7 @@ paths:
44
44
  password:
45
45
  type: string
46
46
  example:
47
- identier: foobar
47
+ identifier: foobar
48
48
  password: Test1234
49
49
  required: true
50
50
  responses:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-users-permissions",
3
- "version": "0.0.0-113ff29005",
3
+ "version": "0.0.0-2c43eb4e39368fbef1fbcff97335117bd8c4c7c9",
4
4
  "description": "Protect your API with a full-authentication process based on JWT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,8 +27,8 @@
27
27
  "test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
28
28
  },
29
29
  "dependencies": {
30
- "@strapi/helper-plugin": "0.0.0-113ff29005",
31
- "@strapi/utils": "0.0.0-113ff29005",
30
+ "@strapi/helper-plugin": "0.0.0-2c43eb4e39368fbef1fbcff97335117bd8c4c7c9",
31
+ "@strapi/utils": "0.0.0-2c43eb4e39368fbef1fbcff97335117bd8c4c7c9",
32
32
  "bcryptjs": "2.4.3",
33
33
  "grant-koa": "5.4.8",
34
34
  "jsonwebtoken": "^8.1.0",
@@ -38,7 +38,7 @@
38
38
  "purest": "4.0.2",
39
39
  "react": "^17.0.2",
40
40
  "react-dom": "^17.0.2",
41
- "react-intl": "5.20.2",
41
+ "react-intl": "5.25.1",
42
42
  "react-redux": "7.2.8",
43
43
  "react-router": "^5.2.0",
44
44
  "react-router-dom": "5.2.0",
@@ -50,7 +50,8 @@
50
50
  "@testing-library/react": "12.1.4",
51
51
  "@testing-library/react-hooks": "8.0.1",
52
52
  "@testing-library/user-event": "14.4.2",
53
- "msw": "0.42.3"
53
+ "msw": "0.42.3",
54
+ "react-test-renderer": "^17.0.2"
54
55
  },
55
56
  "engines": {
56
57
  "node": ">=14.19.1 <=16.x.x",
@@ -63,5 +64,5 @@
63
64
  "required": true,
64
65
  "kind": "plugin"
65
66
  },
66
- "gitHead": "113ff2900569e2f7b1d25a382451031bea239ed2"
67
+ "gitHead": "2c43eb4e39368fbef1fbcff97335117bd8c4c7c9"
67
68
  }
@@ -91,6 +91,18 @@ module.exports = {
91
91
  user: await sanitizeUser(user, ctx),
92
92
  });
93
93
  }
94
+
95
+ // Connect the user with the third-party provider.
96
+ try {
97
+ const user = await getService('providers').connect(provider, ctx.query);
98
+
99
+ return ctx.send({
100
+ jwt: getService('jwt').issue({ id: user.id }),
101
+ user: await sanitizeUser(user, ctx),
102
+ });
103
+ } catch (error) {
104
+ throw new ApplicationError(error.message);
105
+ }
94
106
  },
95
107
 
96
108
  async changePassword(ctx) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * Module dependencies.
4
+ * Module dependencies
5
5
  */
6
6
 
7
7
  // Public node modules.