目前还在开发中。
+ + diff --git a/src/config/app.ts b/src/config/app.ts new file mode 100644 index 0000000..c534c0d --- /dev/null +++ b/src/config/app.ts @@ -0,0 +1,5 @@ +let app = { + name: "MC Search" +} + +export default app diff --git a/src/config/config.ts b/src/config/config.ts new file mode 100644 index 0000000..7634e08 --- /dev/null +++ b/src/config/config.ts @@ -0,0 +1,13 @@ +let config = { + auth: { + server: "https://kc.ivampiresp.com", + clientId: "dev", + realm: "test", + scopes: "openid email profile", + }, + api: { + baseUrl: "http://127.0.0.1:8081", + } +} + +export default config diff --git a/src/config/keycloak.ts b/src/config/keycloak.ts new file mode 100644 index 0000000..093fb6c --- /dev/null +++ b/src/config/keycloak.ts @@ -0,0 +1,10 @@ +import Keycloak from "keycloak-js"; +import config from "@/config/config"; + +let keycloak = new Keycloak({ + url: config.auth.server, + realm: config.auth.realm, + clientId: config.auth.clientId, +}) + +export default keycloak diff --git a/src/layouts/default/AppBar.vue b/src/layouts/default/AppBar.vue index 2b30ddf..9333fa8 100644 --- a/src/layouts/default/AppBar.vue +++ b/src/layouts/default/AppBar.vue @@ -33,23 +33,24 @@