Skip to content

Commit

Permalink
Merge pull request #302 from EmlingerM/upstream/master
Browse files Browse the repository at this point in the history
Initialize Keycloak authentication prior to Vue router
  • Loading branch information
KlausSchaefers authored Jun 22, 2024
2 parents 22302b4 + 6e33116 commit 407fa80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function start() {
if (conf.auth === 'keycloak') {
const keycloakService = Services.getUserService()
await keycloakService.setConf(conf)
await keycloakService.init();
}

Vue.use(VueI18n)
Expand Down
4 changes: 0 additions & 4 deletions src/views/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ export default {
this.$root.$emit('UserLogin', user)
this.logger.log(-1,'signup', 'exit with login', this.email)
}
},
initKeyCloak (conf) {
const keycloakService = Services.getUserService()
keycloakService.init(conf)
}
},
async mounted() {
Expand Down

0 comments on commit 407fa80

Please sign in to comment.