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://192.168.1.161:7771'
#VUE_APP_ORG_API_BASEURL = 'http://10.10.11.31:63766' #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) ...@@ -2,13 +2,14 @@ var oidcSettings = JSON.parse( process.env.VUE_APP_OIDC_CONFIG)
export default { export default {
authority: oidcSettings.authority, authority: oidcSettings.authority,
client_id: oidcSettings.client_id, clientId: oidcSettings.client_id,
client_secret: oidcSettings.client_secret, clientSecret: oidcSettings.client_secret,
redirect_uri: oidcSettings.redirect_uri, redirectUri: oidcSettings.redirect_uri,
response_type: oidcSettings.response_type, responseType: oidcSettings.response_type,
scope: oidcSettings.scope, scope: oidcSettings.scope,
silent_redirect_uri: oidcSettings.silent_redirect_uri, silentRedirectUri: oidcSettings.silent_redirect_uri,
automaticSilentRenew: oidcSettings.automaticSilentRenew, automaticSilentRenew: oidcSettings.automaticSilentRenew,
automaticSilentSignin:true,
accessTokenExpiringNotificationTime: oidcSettings.accessTokenExpiringNotificationTime, accessTokenExpiringNotificationTime: oidcSettings.accessTokenExpiringNotificationTime,
filterProtocolClaims: oidcSettings.filterProtocolClaims, filterProtocolClaims: oidcSettings.filterProtocolClaims,
loadUserInfo: oidcSettings.loadUserInfo loadUserInfo: oidcSettings.loadUserInfo
......
...@@ -20,26 +20,40 @@ module.exports = { ...@@ -20,26 +20,40 @@ module.exports = {
// 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径。 // 指定生成的 index.html 的输出路径 (相对于 outputDir)。也可以是一个绝对路径。
//indexPath: "index.html", //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: { pages: {
app: { app: {
entry: "src/main.js", entry: 'src/main.js',
template: "public/index.html", template: 'public/index.html',
filename: "index.html", filename: 'index.html',
excludeChunks: ["silent-renew-oidc"] excludeChunks: ['silent-renew-oidc']
}, },
silentrenewoidc: { silentrenewoidc: {
entry: "src/assets/js/SilentRenew.js", entry: 'src/silent-renew-oidc.js',
template: "public/silentrenew.html", template: 'public/silent-renew-oidc.html',
filename: "silentrenew.html", filename: 'silent-renew-oidc.html',
excludeChunks: ["app"] excludeChunks: ['app']
},
callback: {
entry: "src/assets/js/CallBack.js",
template: "public/callback.html",
filename: "callback.html",
excludeChunks: ["app"]
} }
}, },
// 默认在生成的静态资源文件名中包含hash以控制缓存 // 默认在生成的静态资源文件名中包含hash以控制缓存
filenameHashing: true, 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