{"repo":"dsb-norge/vue-keycloak-js","free":true,"listed":false,"github":"https://github.com/dsb-norge/vue-keycloak-js","clone":"git clone https://github.com/dsb-norge/vue-keycloak-js.git","description":"A Keycloak plugin for Vue 3","language":"TypeScript","stars":289,"topics":["keycloak","keycloak-adapter","vue","keycloak-plugin","vue3"],"license":"ISC","category":"auth-billing-email","readme_excerpt":"vue-keycloak plugin ------------------- Introduction This plugin uses the official Keycloak JS adapter https://github.com/keycloak/keycloak/tree/main/js/libs/keycloak-js Please read the documentation: https://www.keycloak.org/securing-apps/javascript-adapter Excerpt from Keycloak JS doc: By default to authenticate you need to call the login function. However, there are two options available to make the adapter automatically authenticate. You can pass login-required or check-sso to the init function. login-required will authenticate the client if the user is logged-in to Keycloak or display the login page if not. check-sso will only authenticate the client if the user is already logged-in, if the user is not logged-in the browser will be redirected back to the application and remain unauthenticated. To enable login-required set onLoad to login-required and pass to the init method: keycloak.init({ onLoad: 'login-required' }) Installation Install using npm Install using yarn Usage createApp(App).use(VueKeycloak, [options]) Tell Vue to install the plugin, and optionally pass in a JavaScript object for additional configuration. Getting access to keycloak properties/functions Or with compile-time syntactic sugar The plugin also adds a $keycloak property to the global Vue instance. This shadows most of the keycloak instance's properties and functions. All other variables & functions can be found on $keycloak.keycloak attribute This object from both of these methods is reactive and w","default_branch":null,"files":null,"tree":[],"storefront":"/r/dsb-norge","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dsb-norge/vue-keycloak-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}