Compare commits

..

2 Commits

7 changed files with 881 additions and 905 deletions

View File

@ -1,14 +1,5 @@
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_IMG_URL = http://192.168.10.123:9159

View File

@ -1,14 +1,5 @@
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_IMG_URL = http://192.168.10.123:9159

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
.DS_Store
node_modules
/dist
.history/
# local env files
.env.local
.env.*.local

View File

@ -24,9 +24,6 @@
<script type="text/javascript" src="imouPlayer.js"></script>
<link rel="stylesheet" href="index.css">
<script>
console.log("imouPlayer",imouPlayer)
</script>
<link rel="stylesheet" href="http://mars3d.cn/temp/css/divGraphic.css">
</head>
<body style="padding:0px;">

View File

@ -25,21 +25,13 @@ export default {
}
},
methods: {
userLoaded: function(e) {
console.log('I am listening to the user loaded event in vuex-oidc', e.detail)
},
reload(){
this.isRouterAlive = false
this.$nextTick(function(){
this.isRouterAlive = true
})
},
},
mounted() {
window.addEventListener('vuexoidc:userLoaded', this.userLoaded)
},
destroyed() {
window.removeEventListener('vuexoidc:userLoaded', this.userLoaded)
}
}
</script>

View File

@ -29,33 +29,7 @@ const store = new Vuex.Store({
storage,
tagsView,
flow,
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')
}
)
tenant
},
getters
})

File diff suppressed because it is too large Load Diff