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 +2 -2
- package/plugin.json +3 -3
- package/templates/admin/plugins/sso-github.tpl +17 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-sso-github",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
49
|
+
"compatibility": "^3.0.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/plugin.json
CHANGED
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
<div class="row">
|
|
2
|
-
<div class="col-sm-2 col-
|
|
3
|
-
<div class="col-sm-10 col-
|
|
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
|
-
<
|
|
6
|
-
|
|
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="
|
|
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="
|
|
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="
|
|
17
|
+
<div class="mb-3 alert alert-warning">
|
|
21
18
|
<label for="callback">Your NodeBB'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="
|
|
20
|
+
<p class="form-text">
|
|
24
21
|
Ensure that this value is set in your GitHub application's settings
|
|
25
22
|
</p>
|
|
26
23
|
</div>
|
|
27
|
-
<div class="
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
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="
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
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="
|
|
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.
|