Commit b31a1b67 by 张建朝

tj

parent 15e965f6
VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id": "teamix-team-manager-web-pc", "client_secret": "123456", "redirect_uri": "http://localhost:8080/oidc-callback", "response_type": "id_token token", "scope": "workapps.client api.workapps.user api.workapps.org api.workapps.open openid","post_logout_redirect_uri":"http://localhost:8080", "silent_redirect_uri": "http://localhost:8080/silentrenew.html", "automaticSilentRenew": true,"accessTokenExpiringNotificationTime":60,"filterProtocolClaims":true,"loadUserInfo":true }'
VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id": "teamix-team-manager-web-pc", "client_secret": "123456", "redirect_uri": "http://localhost:8080/callback.html", "response_type": "id_token token", "scope": "workapps.client api.workapps.user api.workapps.org api.workapps.open openid","post_logout_redirect_uri":"http://localhost:8080", "silent_redirect_uri": "http://localhost:8080/silent-renew-oidc.html", "automaticSilentRenew": true,"accessTokenExpiringNotificationTime":60,"filterProtocolClaims":true,"loadUserInfo":true }'
VUE_APP_ORG_API_BASEURL = 'http://192.168.1.161:7771'
#VUE_APP_ORG_API_BASEURL = 'http://10.10.11.31:63766'
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
import 'core-js/fn/promise'
import { vuexOidcProcessSilentSignInCallback } from 'vuex-oidc'
vuexOidcProcessSilentSignInCallback()
\ No newline at end of file
......@@ -2,13 +2,14 @@ var oidcSettings = JSON.parse( process.env.VUE_APP_OIDC_CONFIG)
export default {
authority: oidcSettings.authority,
client_id: oidcSettings.client_id,
client_secret: oidcSettings.client_secret,
redirect_uri: oidcSettings.redirect_uri,
response_type: oidcSettings.response_type,
clientId: oidcSettings.client_id,
clientSecret: oidcSettings.client_secret,
redirectUri: oidcSettings.redirect_uri,
responseType: oidcSettings.response_type,
scope: oidcSettings.scope,
silent_redirect_uri: oidcSettings.silent_redirect_uri,
silentRedirectUri: oidcSettings.silent_redirect_uri,
automaticSilentRenew: oidcSettings.automaticSilentRenew,
automaticSilentSignin:true,
accessTokenExpiringNotificationTime: oidcSettings.accessTokenExpiringNotificationTime,
filterProtocolClaims: oidcSettings.filterProtocolClaims,
loadUserInfo: oidcSettings.loadUserInfo
......
......@@ -20,26 +20,40 @@ module.exports = {
// 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径。
//indexPath: "index.html",
// pages: {
// app: {
// entry: "src/main.js",
// template: "public/index.html",
// filename: "index.html",
// excludeChunks: ["silent-renew-oidc"]
// },
// silentrenewoidc: {
// entry: "src/assets/js/SilentRenew.js",
// template: "public/silentrenew.html",
// filename: "silentrenew.html",
// excludeChunks: ["app"]
// },
// callback: {
// entry: "src/assets/js/CallBack.js",
// template: "public/callback.html",
// filename: "callback.html",
// excludeChunks: ["app"]
// }
// },
pages: {
app: {
entry: "src/main.js",
template: "public/index.html",
filename: "index.html",
excludeChunks: ["silent-renew-oidc"]
entry: 'src/main.js',
template: 'public/index.html',
filename: 'index.html',
excludeChunks: ['silent-renew-oidc']
},
silentrenewoidc: {
entry: "src/assets/js/SilentRenew.js",
template: "public/silentrenew.html",
filename: "silentrenew.html",
excludeChunks: ["app"]
},
callback: {
entry: "src/assets/js/CallBack.js",
template: "public/callback.html",
filename: "callback.html",
excludeChunks: ["app"]
entry: 'src/silent-renew-oidc.js',
template: 'public/silent-renew-oidc.html',
filename: 'silent-renew-oidc.html',
excludeChunks: ['app']
}
},
},
// 默认在生成的静态资源文件名中包含hash以控制缓存
filenameHashing: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment