Giter VIP home page Giter VIP logo

Comments (4)

anderseknert avatar anderseknert commented on May 26, 2024

Should work with Java 8. Looks like you are skipping the step before that?

mvn install:install-file -Dfile=target/voter-1.0-SNAPSHOT.jar -DpomFile=pom.xml

The jar isn't published to Maven Central, so you'll need to build and deploy it to your own repository.

from contrib.

ameerhu avatar ameerhu commented on May 26, 2024

That's great. you are right, It works now.
Can we use it to authorize the user as well or it can be only use to communicate between the microservers or application?

If we can use it to authorize the user then how could I dynamically verify the permission of the user by database? I mean I don't have only one user, I have multiple users in the database and I want to allow only if the subject Id equal to the one of the id exists in my database.
Can you guide me here or show me the tutorial from where I can learn. Thanks!

from contrib.

anderseknert avatar anderseknert commented on May 26, 2024

Sure you can! The input object provided to OPA is built here, so you could modify that to include whatever you need.

See the documentation on external data for how to get data from e.g. a database into your OPA instances. For most cases the bundle model is a pretty good default choice.

from contrib.

anderseknert avatar anderseknert commented on May 26, 2024

Anything left unanswered here or are we good to close this @ameerhu?

from contrib.

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.