remove keycloak use cookie auth
This commit is contained in:
parent
035db71697
commit
5a5e37c12d
27 changed files with 501 additions and 440 deletions
|
|
@ -833,7 +833,7 @@ import type { DataOption } from "@/modules/04_registry/interface/index/Main";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useProfileDataStore } from "@/modules/04_registry/store";
|
||||
import keycloak from "@/plugins/keycloak";
|
||||
import { tokenParsed } from "@/plugins/auth";
|
||||
|
||||
const $q = useQuasar();
|
||||
const store = useDataStore();
|
||||
|
|
@ -996,13 +996,10 @@ function onClickUnlock() {
|
|||
);
|
||||
}
|
||||
onMounted(async () => {
|
||||
if (keycloak.tokenParsed != null) {
|
||||
roleKeyregistry.value = await keycloak.tokenParsed.role.includes(
|
||||
"keyregistry"
|
||||
);
|
||||
roleRegistryverify.value = await keycloak.tokenParsed.role.includes(
|
||||
"registryverify"
|
||||
);
|
||||
const user = await tokenParsed();
|
||||
if (user) {
|
||||
roleKeyregistry.value = await user.role.includes("keyregistry");
|
||||
roleRegistryverify.value = await user.role.includes("registryverify");
|
||||
}
|
||||
|
||||
await changeTab("information");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue