Giter Club home page Giter Club logo

vue-vite_with_keycloak_21.0.1_nothirdpartylibs's Introduction

I managed to implement keycloak-js adapter 21.0.1 with Vue 3 Vite, without any third party libraries

Given you entered your keycloak configurations correctly, you should be able to perform GET-Requests to your backend by passing your URI into the inputfield, logging in/out with kecloak and seeing some details of your end-user

This is a ready to use solution for creating an instance of keycloak and passing it to the App.vue. A realm, a client and an user with given roles should already exist on your keycloak server, in order to perform a GET-request to your backend application, after keycloak login. Using spring security 6 cors and csrf should be configured properly too.

Configuration of a frontend client in keycloak with PKCE

On your realm create a new client with following settings: Client authentication: Off - we dont have a client_secret as we choose using a JS-framework Authorization: Off Authentication flow checkboxes: Only standart flow Proof Key for Code Exchange Code Challenge Method: none (sha256 is recommend though)

Root Url: http://localhost:3000 Valid redirect URIs: http://localhost:3000/* Valid post logout redirect URIs: + Web origins: * Admin URL: http://localhost:3000

Make sure you use the right keycloak endpoints. Some older versions have different paths

http://localhost:8080/realms/demo/.well-known/openid-configuration (assuming your keycloak is running on 8080)

vue-vite_with_keycloak_21.0.1_nothirdpartylibs's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.