Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b31a1b67
authored
Apr 15, 2020
by
张建朝
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
15e965f6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
20 deletions
.env.development
public/silent-renew-oidc.html
src/silent-renew-oidc.js
src/utils/oidcSettings.js
vue.config.js
.env.development
View file @
b31a1b67
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'
...
...
public/silent-renew-oidc.html
0 → 100644
View file @
b31a1b67
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
</head>
<body>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
src/silent-renew-oidc.js
0 → 100644
View file @
b31a1b67
import
'core-js/fn/promise'
import
{
vuexOidcProcessSilentSignInCallback
}
from
'vuex-oidc'
vuexOidcProcessSilentSignInCallback
()
\ No newline at end of file
src/utils/oidcSettings.js
View file @
b31a1b67
...
@@ -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
_i
d
:
oidcSettings
.
client_id
,
client
I
d
:
oidcSettings
.
client_id
,
client
_s
ecret
:
oidcSettings
.
client_secret
,
client
S
ecret
:
oidcSettings
.
client_secret
,
redirect
_u
ri
:
oidcSettings
.
redirect_uri
,
redirect
U
ri
:
oidcSettings
.
redirect_uri
,
response
_t
ype
:
oidcSettings
.
response_type
,
response
T
ype
:
oidcSettings
.
response_type
,
scope
:
oidcSettings
.
scope
,
scope
:
oidcSettings
.
scope
,
silent
_redirect_u
ri
:
oidcSettings
.
silent_redirect_uri
,
silent
RedirectU
ri
:
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
...
...
vue.config.js
View file @
b31a1b67
...
@@ -20,24 +20,38 @@ module.exports = {
...
@@ -20,24 +20,38 @@ 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"
]
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment