You must have a Keycloak server running somewhere, with the correct
setup, eg. redirectUri
, clientId
, realm
etc.
Or you could run: docker-compose up
in this directory and get a temporary working
keycloak instance. You need to register a new user on the initial login
Simple example of how to use vue-keycloak-js
in a Vue application. and getting access to the keycloak object in the template
git clone https://github.com/dsb-norge/vue-keycloak-js.git
cd vue-keycloak-js/examples/simple
npm install
npm run dev
Simple example of how to use vue-keycloak-js
in a Vue application with typescript.
git clone https://github.com/dsb-norge/vue-keycloak-js.git
cd vue-keycloak-js/examples/typescript
npm install
npm run dev
Simple example of how to use vue-keycloak-js
in a Vue application with Axios interceptor.
allowing you to do secured requests to your backend with the users access token.
git clone https://github.com/dsb-norge/vue-keycloak-js.git
cd vue-keycloak-js/examples/axios-interceptor
npm install
npm run dev