nodebb-plugin-sso-github 2.3.1 → 3.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-sso-github",
3
- "version": "2.3.1",
3
+ "version": "3.0.0",
4
4
  "description": "NodeBB GitHub SSO",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -46,6 +46,6 @@
46
46
  "passport-github2": "^0.1.9"
47
47
  },
48
48
  "nbbpm": {
49
- "compatibility": "^1.16.0"
49
+ "compatibility": "^3.0.0"
50
50
  }
51
51
  }
package/plugin.json CHANGED
@@ -13,7 +13,7 @@
13
13
  { "hook": "filter:user.whitelistFields", "method": "appendUserHashWhitelist" }
14
14
  ],
15
15
  "templates": "./templates",
16
- "acpScripts": [
17
- "static/lib/admin.js"
18
- ]
16
+ "modules": {
17
+ "../admin/plugins/sso-github.js": "static/lib/admin.js"
18
+ }
19
19
  }
@@ -1,42 +1,39 @@
1
1
  <div class="row">
2
- <div class="col-sm-2 col-xs-12 settings-header">GitHub SSO</div>
3
- <div class="col-sm-10 col-xs-12">
2
+ <div class="col-sm-2 col-12 settings-header">GitHub SSO</div>
3
+ <div class="col-sm-10 col-12">
4
4
  <div class="alert alert-info">
5
- <p>
6
- Register a new <strong>GitHub Application</strong> via
7
- <a href="https://github.com/settings/developers">Developer Applications</a> and then paste
8
- your application details here.
9
- </p>
5
+ Register a new <strong>GitHub Application</strong> via
6
+ <a href="https://github.com/settings/developers">Developer Applications</a> and then paste your application details here.
10
7
  </div>
11
8
  <form class="sso-github-settings">
12
- <div class="form-group">
9
+ <div class="mb-3">
13
10
  <label for="id">Client ID</label>
14
11
  <input type="text" name="id" title="Client ID" class="form-control" placeholder="Client ID">
15
12
  </div>
16
- <div class="form-group">
13
+ <div class="mb-3">
17
14
  <label for="secret">Client Secret</label>
18
15
  <input type="text" name="secret" title="Client Secret" class="form-control" placeholder="Client Secret" />
19
16
  </div>
20
- <div class="form-group alert alert-warning">
17
+ <div class="mb-3 alert alert-warning">
21
18
  <label for="callback">Your NodeBB&apos;s "Authorization callback URL"</label>
22
19
  <input type="text" id="callback" title="Authorization callback URL" class="form-control" value="{callbackURL}" readonly />
23
- <p class="help-block">
20
+ <p class="form-text">
24
21
  Ensure that this value is set in your GitHub application&apos;s settings
25
22
  </p>
26
23
  </div>
27
- <div class="checkbox">
28
- <label for="disableRegistration" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
29
- <input type="checkbox" class="mdl-switch__input" id="disableRegistration" name="disableRegistration" />
30
- <span class="mdl-switch__label">Disable user registration via SSO</span>
24
+ <div class="form-check">
25
+ <input type="checkbox" class="form-check-input" id="disableRegistration" name="disableRegistration" />
26
+ <label for="disableRegistration" class="form-check-label">
27
+ Disable user registration via SSO
31
28
  </label>
32
29
  </div>
33
- <div class="checkbox">
34
- <label for="needToVerifyEmail" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
35
- <input type="checkbox" class="mdl-switch__input" id="needToVerifyEmail" name="needToVerifyEmail" />
36
- <span class="mdl-switch__label">Need user to verify email</span>
30
+ <div class="form-check">
31
+ <input type="checkbox" class="form-check-input" id="needToVerifyEmail" name="needToVerifyEmail" />
32
+ <label for="needToVerifyEmail" class="form-check-label">
33
+ Need user to verify email
37
34
  </label>
38
35
  </div>
39
- <p class="help-block">
36
+ <p class="form-text">
40
37
  Restricting registration means that only registered users can associate their account with this SSO strategy.
41
38
  This restriction is useful if you have uesrs bypassing registration controls by using social media accounts, or
42
39
  if you wish to use the NodeBB registration queue.