Git Product home page Git Product logo

Comments (4)

anderius avatar anderius commented on June 18, 2024 4

You can't! :-)

You need to make the client public in Keycloak.

You can read more here:

One important thing to note about using client-side applications is that the client has to be a public client as there is no secure way to store client credentials in a client-side application. This makes it very important to make sure the redirect URIs you have configured for the client are correct and as specific as possible.

from vue-keycloak-js.

anderius avatar anderius commented on June 18, 2024

There seems to be some undocumentet code in the keycloak javascript adapter, that supports a credentials object with a secret... Are you using this?

If we simply pass on the config object, as proposed in #8, this would be possible.

I still can't see the use case for a secret in the javascript adapter. Can you perhaps explain how the secret would be used in your case?

from vue-keycloak-js.

bdparrish avatar bdparrish commented on June 18, 2024

This would be in reference to the confidential access type. Take a look at keycloak-angular. They have implemented using the client secret in order to complete the confidential workflow.

from vue-keycloak-js.

anderius avatar anderius commented on June 18, 2024

I still don't see how the secret would be a secret if it is sent to the browser...

But the code is (undocumented) in the Keycloak javascript adapter.

I am in favor of solving this by passing the config object directly to Keycloak, as suggested in #8.

Hopefully we will have this fixed by tomorrow, one way or the other!

from vue-keycloak-js.

Related Issues (20)

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.