Ver Fonte

Azure授权 鉴权码等信息修改

wangggziwen há 2 anos atrás
pai
commit
650f5e5c86
1 ficheiros alterados com 18 adições e 0 exclusões
  1. 18 0
      ui/src/views/login.vue

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

@@ -188,6 +188,24 @@ export default {
       // 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
+
+      // 2. client_id
+      // client_id=13848745-b09e-4105-a48b-180c0c9d13fd
+
+      // 3. scope
+      // scope=openid profile
+
+      // 4. 重定向地址
+      // redirect_uri=https://cpms.basf-ypc.net.cn/cpms/index.html
+      // http%3A%2F%2Fcpms.basf-ypc.net.cn%2Fcpms%2Findex.html
+
+      // 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';
+      window.location.href = 'https://login.microsoftonline.com/ecaa386b-c8df-4ce0-ad01-740cbdb5ba55/oauth2/v2.0/authorize?client_id=13848745-b09e-4105-a48b-180c0c9d13fd&redirect_uri=http%3A%2F%2Fcpms.basf-ypc.net.cn%2Fcpms%2Findex.html&scope=openid%20profile&response_type=code';
+    },
     /** Azure登录跳转 */
     toggleAzureLogin() {
       let code = window.location.search.replace("?code=" , '');