Kaynağa Gözat

Azure授权 鉴权码等信息修改

wangggziwen 2 yıl önce
ebeveyn
işleme
2c9cb42036
2 değiştirilmiş dosya ile 2 ekleme ve 11 silme
  1. 2 2
      ui/src/views/azureLogin.vue
  2. 0 9
      ui/src/views/login.vue

+ 2 - 2
ui/src/views/azureLogin.vue

@@ -8,8 +8,8 @@
         授权成功,登录中...
         <br/>
         <div style="margin-top: 20px;">
-          <!-- TODO: 修改重定向地址-->
-          <button id="back-button" onclick="javascript:window.location.href='http://localhost/cpms/index.html';">返 回</button>
+          <!--<button id="back-button" onclick="javascript:window.location.href='http://localhost/cpms/index.html';">返 回</button>-->
+          <button id="back-button" onclick="javascript:window.location.href='https://cpms.basf-ypc.net.cn/cpms/index.html';">返 回</button>
         </div>
       </div>
     </div>

+ 0 - 9
ui/src/views/login.vue

@@ -180,15 +180,6 @@ export default {
       window.location.href = 'https://gitee.com/oauth/authorize?client_id=e7faeabf239846288ee07e6c40066cbd0dcc46cb1c1dea37c602c29a2368c6b8&redirect_uri=http%3A%2F%2Flocalhost%2Fcpms%2Findex.html%23%2FsocialLogin&response_type=code';
     },
     /** Azure登录 */
-    doAzureLogin() {
-      // TODO: 1. 修改authorize请求链接、2. 修改client_id、3. 修改scope 4. 修改重定向地址
-      // 1. https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/authorize
-      // 2. client_id=?
-      // 3. scope=profile openid offline_access
-      // 4. redirect_uri=?
-      window.location.href = 'https://login.microsoftonline.com/7503e40a-97ec-4eb9-bf6d-2836e57e882d/oauth2/v2.0/authorize?client_id=3db6f125-db4d-456b-a76e-a6d03182e845&redirect_uri=http%3A%2F%2Flocalhost%2Fcpms%2Findex.html&scope=api://3db6f125-db4d-456b-a76e-a6d03182e845/User.Read&response_type=code';
-    },
-    /** Azure登录 */
     doAzureLogin() {
       // 1. authorize请求链接
       // https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/authorize