Compare commits
2 Commits
7c86550ebe
...
5001486093
| Author | SHA1 | Date |
|---|---|---|
|
|
5001486093 | |
|
|
81f0ff0cfa |
9
.env.dev
9
.env.dev
|
|
@ -1,14 +1,5 @@
|
||||||
NODE_ENV = development
|
NODE_ENV = development
|
||||||
|
|
||||||
VUE_APP_OIDC_AUTHORITY = http://112.233.241.108:12796
|
|
||||||
VUE_APP_OIDC_CLIENTID = OpenAuth.Pro
|
|
||||||
VUE_APP_OIDC_REDIRECTURI = http://112.233.241.108:1803/#/oidc-callback
|
|
||||||
VUE_APP_OIDC_POSTLOGOUTREDIRECTURI = http://112.233.241.108:1803
|
|
||||||
VUE_APP_OIDC_RESPONSETYPE = code
|
|
||||||
VUE_APP_OIDC_SCOPE = openid profile openauthapi
|
|
||||||
VUE_APP_OIDC_AUTOMATICSILENTRENEW = true
|
|
||||||
VUE_APP_OIDC_SILENTREDIRECTURI = http://112.233.241.108:1803/silent-renew-oidc.html
|
|
||||||
|
|
||||||
#VUE_APP_BASE_API =http://192.168.10.123:9159/api
|
#VUE_APP_BASE_API =http://192.168.10.123:9159/api
|
||||||
#VUE_APP_BASE_IMG_URL = http://192.168.10.123:9159
|
#VUE_APP_BASE_IMG_URL = http://192.168.10.123:9159
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,5 @@
|
||||||
NODE_ENV = production
|
NODE_ENV = production
|
||||||
|
|
||||||
VUE_APP_OIDC_AUTHORITY = http://demo.openauth.me:12796
|
|
||||||
VUE_APP_OIDC_CLIENTID = OpenAuth.Pro
|
|
||||||
VUE_APP_OIDC_REDIRECTURI = http://demo.openauth.me:1803/#/oidc-callback
|
|
||||||
VUE_APP_OIDC_POSTLOGOUTREDIRECTURI = http://demo.openauth.me:1803
|
|
||||||
VUE_APP_OIDC_RESPONSETYPE = code
|
|
||||||
VUE_APP_OIDC_SCOPE = openid profile openauthapi
|
|
||||||
VUE_APP_OIDC_AUTOMATICSILENTRENEW = true
|
|
||||||
VUE_APP_OIDC_SILENTREDIRECTURI = http://demo.openauth.me:1803/silent-renew-oidc.html
|
|
||||||
|
|
||||||
#VUE_APP_BASE_API = http://192.168.10.123:9159/api
|
#VUE_APP_BASE_API = http://192.168.10.123:9159/api
|
||||||
#VUE_APP_BASE_IMG_URL = http://192.168.10.123:9159
|
#VUE_APP_BASE_IMG_URL = http://192.168.10.123:9159
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
/dist
|
||||||
|
.history/
|
||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@
|
||||||
|
|
||||||
<script type="text/javascript" src="imouPlayer.js"></script>
|
<script type="text/javascript" src="imouPlayer.js"></script>
|
||||||
<link rel="stylesheet" href="index.css">
|
<link rel="stylesheet" href="index.css">
|
||||||
<script>
|
|
||||||
console.log("imouPlayer",imouPlayer)
|
|
||||||
</script>
|
|
||||||
<link rel="stylesheet" href="http://mars3d.cn/temp/css/divGraphic.css">
|
<link rel="stylesheet" href="http://mars3d.cn/temp/css/divGraphic.css">
|
||||||
</head>
|
</head>
|
||||||
<body style="padding:0px;">
|
<body style="padding:0px;">
|
||||||
|
|
|
||||||
10
src/App.vue
10
src/App.vue
|
|
@ -25,21 +25,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
userLoaded: function(e) {
|
|
||||||
console.log('I am listening to the user loaded event in vuex-oidc', e.detail)
|
|
||||||
},
|
|
||||||
reload(){
|
reload(){
|
||||||
this.isRouterAlive = false
|
this.isRouterAlive = false
|
||||||
this.$nextTick(function(){
|
this.$nextTick(function(){
|
||||||
this.isRouterAlive = true
|
this.isRouterAlive = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
window.addEventListener('vuexoidc:userLoaded', this.userLoaded)
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
window.removeEventListener('vuexoidc:userLoaded', this.userLoaded)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -29,33 +29,7 @@ const store = new Vuex.Store({
|
||||||
storage,
|
storage,
|
||||||
tagsView,
|
tagsView,
|
||||||
flow,
|
flow,
|
||||||
tenant,
|
tenant
|
||||||
oidcStore: vuexOidcCreateStoreModule(
|
|
||||||
{
|
|
||||||
authority: process.env.VUE_APP_OIDC_AUTHORITY,
|
|
||||||
clientId: process.env.VUE_APP_OIDC_CLIENTID,
|
|
||||||
redirectUri: process.env.VUE_APP_OIDC_REDIRECTURI,
|
|
||||||
postLogoutRedirectUri:process.env.VUE_APP_OIDC_POSTLOGOUTREDIRECTURI,
|
|
||||||
responseType: process.env.VUE_APP_OIDC_RESPONSETYPE,
|
|
||||||
scope: process.env.VUE_APP_OIDC_SCOPE,
|
|
||||||
automaticSilentRenew: process.env.VUE_APP_OIDC_AUTOMATICSILENTRENEW ,
|
|
||||||
silentRedirectUri: process.env.VUE_APP_OIDC_SILENTREDIRECTURI
|
|
||||||
},
|
|
||||||
// Optional OIDC store settings
|
|
||||||
{
|
|
||||||
namespaced: false,
|
|
||||||
dispatchEventsOnWindow: true
|
|
||||||
},
|
|
||||||
// Optional OIDC event listeners
|
|
||||||
{
|
|
||||||
userLoaded: (user) => console.log('OIDC user is loaded:', user),
|
|
||||||
userUnloaded: () => console.log('OIDC user is unloaded'),
|
|
||||||
accessTokenExpiring: () => console.log('Access token will expire'),
|
|
||||||
accessTokenExpired: () => console.log('Access token did expire'),
|
|
||||||
silentRenewError: () => console.log('OIDC user is unloaded'),
|
|
||||||
userSignedOut: () => console.log('OIDC user is signed out')
|
|
||||||
}
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
getters
|
getters
|
||||||
})
|
})
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue