Bladeren bron

saml 2 登录切换到正式的环境 4.0.24

YangZhiJie 2 jaren geleden
bovenliggende
commit
cd405dda0b
3 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 1 1
      package.json
  2. 2 2
      src/client/Login.vue
  3. 3 3
      src/identity/CreateIdentity.vue

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-base-v4",
   "description": "Leanwo Prodog Client",
-  "version": "4.0.23",
+  "version": "4.0.24",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",

+ 2 - 2
src/client/Login.vue

@@ -337,13 +337,13 @@ export default {
     // 判断SAML服务器是否存在
     existsSAML: function (id) {
       $.ajax({
-        url: '/api/SamlLogin/samlServiceProviderCheck?authSettingId=1',
+        url: '/api/SamlLogin/samlServiceProviderCheck?authSettingId=' + id,
         type: 'get',
         contentType: 'application/json',
         dataType: 'json',
         success: function (response) {
           if (response.errorCode === 0) {
-            let url = '/api/SamlLogin/index?authSettingId=1';
+            let url = '/api/SamlLogin/index?authSettingId=' + id;
             window.location.href = url;
           } else {
             Notify.error('错误', response.errorMessage);

+ 3 - 3
src/identity/CreateIdentity.vue

@@ -343,7 +343,7 @@ const identitySetting = ref({
   spEntityID: 'com.leanwo.prodog.sp',
   spAssertionConsumeService: 'http://xxxx:xx/api/saml/sso/${id}',
   spAssertionConsumeSuccessRedirectService:
-    'http://xxxx:xx/index.html/#/samlLogin',
+    'http://xxxx:xx/index.html#/samlLogin',
 });
 
 const service = ref(false);
@@ -376,10 +376,10 @@ let redirectService = async (_rule, value) => {
   if (!value) {
     return Promise.reject('请输入 Prodog 断言解析成功跳转地址');
   }
-  if (!value.endsWith('index.html/#/samlLogin')) {
+  if (!value.endsWith('index.html#/samlLogin')) {
     redirect.value = true;
     return Promise.reject(
-      '断言解析成功跳转地址必须以index.html/#/samlLogin结束',
+      '断言解析成功跳转地址必须以index.html#/samlLogin结束',
     );
   } else {
     redirect.value = false;