peertube-plugin-auth-yaknet 1.0.8 → 1.0.9
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/README.md +2 -2
- package/main.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
4
|
[](https://joinpeertube.org)
|
|
5
|
-
[](https://
|
|
5
|
+
[](https://developer-console.yakhub.com.tr)
|
|
6
6
|
|
|
7
7
|
**English** | [Türkçe](#türkçe)
|
|
8
8
|
|
|
@@ -43,7 +43,7 @@ In your PeerTube admin panel (**Administration > Plugins / Themes > Settings** f
|
|
|
43
43
|
|
|
44
44
|
- **Client ID:** Your registered YakNet OAuth2 Application Client ID.
|
|
45
45
|
- **Client Secret:** Your YakNet OAuth2 Client Secret.
|
|
46
|
-
- **Auth Base URL:** Default is `https://
|
|
46
|
+
- **Auth Base URL:** Default is `https://developer-console.yakhub.com.tr`.
|
|
47
47
|
- **Auto-Redirect on Login:** Automatically bypass the standard login form and redirect users directly to YakNet SSO (also synchronizes `redirect_on_single_external_auth` in PeerTube configuration).
|
|
48
48
|
|
|
49
49
|
---
|
package/main.js
CHANGED
|
@@ -4,7 +4,7 @@ const http = require('http');
|
|
|
4
4
|
|
|
5
5
|
let clientId = '';
|
|
6
6
|
let clientSecret = '';
|
|
7
|
-
let authBaseUrl = 'https://
|
|
7
|
+
let authBaseUrl = 'https://developer-console.yakhub.com.tr';
|
|
8
8
|
|
|
9
9
|
function postRequest(urlStr, data) {
|
|
10
10
|
return new Promise((resolve, reject) => {
|
|
@@ -104,16 +104,17 @@ async function register({ registerExternalAuth, registerSetting, settingsManager
|
|
|
104
104
|
name: 'auth-base-url',
|
|
105
105
|
label: 'YakNet Auth URL',
|
|
106
106
|
type: 'input',
|
|
107
|
-
description: 'YakNet SSO Server URL (Default: https://
|
|
107
|
+
description: 'YakNet SSO Server URL (Default: https://developer-console.yakhub.com.tr)',
|
|
108
108
|
private: false,
|
|
109
|
-
default: 'https://
|
|
109
|
+
default: 'https://developer-console.yakhub.com.tr'
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
registerSetting({
|
|
113
113
|
name: 'auto-redirect-login',
|
|
114
|
-
label:
|
|
114
|
+
label: "Giriş Sayfasında Doğrudan YakNet SSO'ya Yönlendir",
|
|
115
115
|
type: 'input-checkbox',
|
|
116
|
-
description:
|
|
116
|
+
description:
|
|
117
|
+
'Aktif olduğunda, kullanıcılar giriş butonuna veya /login sayfasına gittiğinde standart PeerTube şifre formu yerine doğrudan YakNet SSO sunucusuna yönlendirilir.',
|
|
117
118
|
private: false,
|
|
118
119
|
default: true
|
|
119
120
|
});
|