Open pwei1018 opened 3 months ago
https://www.keycloak.org/docs/latest/securing_apps/index.html#logout
Option 1:
Upgrade the keycloak-js version to 24
Replace redirect_uri to post_logout_redirect_uri and id_token_hint in the logout url parameter.
Option 2:
Switch to using "firebase auth" example : https://github.com/bcgov/sbc-apigw/blob/main/web/site/composables/sbcAuth.ts
sbc common components:
Master: https://github.com/bcgov/sbc-common-components/blob/master/vue/sbc-common-components/src/services/keycloak.services.ts
Vue2.7 https://github.com/bcgov/sbc-common-components/blob/4.0.0-vue27/vue/sbc-common-components/src/services/keycloak.services.ts
Vue3 https://github.com/bcgov/sbc-common-components/blob/4.0.0-vue3/vue/sbc-common-components/src/services/keycloak.services.ts
Registry Search:
https://github.com/bcgov/registries-search/blob/main/search-ui/src/sbc-common-components/services/keycloak.services.ts
STRR:
https://github.com/bcgov/STRR/blob/main/strr-web/composables/useBcrosAuth.ts
BTR:
https://github.com/bcgov/business-transparency-registry/blob/main/btr-web/btr-common-components/stores/keycloak.ts#L106
Business AR:
https://github.com/bcgov/business-ar/blob/main/web/site/composables/useKeycloak.ts#L14
Name examine (questionable):
https://github.com/bcgov/name-examination/blob/main/plugins/keycloak.client.ts
What is the problem?
https://www.keycloak.org/docs/latest/securing_apps/index.html#logout
What is the impact?
Proposed solution
Option 1:
Upgrade the keycloak-js version to 24
Replace redirect_uri to post_logout_redirect_uri and id_token_hint in the logout url parameter.
Option 2:
Switch to using "firebase auth" example : https://github.com/bcgov/sbc-apigw/blob/main/web/site/composables/sbcAuth.ts