This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client: | |
Debug Mode: false | |
Server: | |
Containers: 0 | |
Running: 0 | |
Paused: 0 | |
Stopped: 0 | |
Images: 0 | |
Server Version: 19.03.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host: | |
BuildahVersion: 1.12.0-dev | |
CgroupVersion: v1 | |
Conmon: | |
package: conmon-2.0.6-1.module_el8.1.0+298+41f9343a.x86_64 | |
path: /usr/bin/conmon | |
version: 'conmon version 2.0.6, commit: 2721f230f94894671f141762bd0d1af2fb263239' | |
Distribution: | |
distribution: '"centos"' | |
version: "8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 test.bzh | |
127.0.0.1 demo1.test.bzh | |
127.0.0.1 demo2.test.bzh | |
127.0.0.1 demo3.test.bzh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.prototype.$keycloak.logoutFn(); | |
// this.$keycloak.logoutFn(); fonctionne aussi, seulement Typescript // dira qu'il ne connait pas cet objet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Vue.prototype.$keycloak.token !== null) { | |
this.authenticated = true; | |
this.user.username = Vue.prototype.$keycloak.userName; | |
this.user.role = Vue.prototype.$keycloak.tokenParsed.realm_access.roles[0]; | |
this.user.email = Vue.prototype.$keycloak.tokenParsed.email; | |
} else { | |
console.log('Not logged'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
import axios, { AxiosRequestConfig } from 'axios'; | |
import VueAxios from 'vue-axios'; | |
import App from './App.vue'; | |
import router from './router'; | |
import VueKeyCloak from '@dsb-norge/vue-keycloak-js'; | |
import 'bulma/css/bulma.css'; | |
Vue.use(VueAxios, axios); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.slickteam.springkeycloakback.config | |
import org.keycloak.adapters.KeycloakConfigResolver | |
import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver | |
import org.keycloak.adapters.springsecurity.KeycloakSecurityComponents | |
import org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.ComponentScan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
port: ${PORT} | |
keycloak: | |
auth-server-url: ${KEYCLOAK_AUTH_URL} | |
ssl-required: none | |
realm: ${KEYCLOAK_REALM} | |
resource: ${KEYCLOAK_CLIENT_ID} | |
bearer-only: true | |
credentials: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
... | |
implementation("org.keycloak:keycloak-spring-boot-starter:$versionKeycloak") | |
implementation("org.keycloak.bom:keycloak-adapter-bom:$versionKeycloak") | |
implementation("org.keycloak:keycloak-spring-boot-adapter:$versionKeycloak") | |
... | |
} |