Giter VIP home page Giter VIP logo

Comments (8)

tsegismont avatar tsegismont commented on August 15, 2024 1

The problem is UserImpl makes checks (like create a User without providing a principal) that the change allows to circumvent.

My opinion is VertxProfileManager in Pac4j shouldn't invoke an internal constructor in UserImpl. Instead, it should one of the creation methods in the User interface.

from vertx-auth.

jpenglert avatar jpenglert commented on August 15, 2024

I will submit a PR

from vertx-auth.

jpenglert avatar jpenglert commented on August 15, 2024

Submitted #658

from vertx-auth.

tsegismont avatar tsegismont commented on August 15, 2024

If an instance of UserImpl is constructed using the default constructor

@jpenglert this should not be done by user code. The default constructor is only present because it is required for ClusterSerializable implementations.

from vertx-auth.

jpenglert avatar jpenglert commented on August 15, 2024

@tsegismont understood that an instance of UserImpl should not be constructed using the default constructor by user code. However, is there any harm in updating the deserializing code to be more robust by handling null fields like the serializing code does?

from vertx-auth.

jpenglert avatar jpenglert commented on August 15, 2024

@tsegismont I made a PR for vertx-pac4j but that project looks pretty dead. If you know anyone over there maybe you could ping them?

Seems like vertx-pac4j may need to do a more in-depth re-work such that instead of extending UserImpl with Pac4jUser they use the io.vertx.ext.auth.authorization.Authorization interface instead?

from vertx-auth.

tsegismont avatar tsegismont commented on August 15, 2024

@jpenglert sorry, I don't know any maintainers personally and I'm not familiar with vertx-pac4j

Have you tried to look at the GH profile of the committers? Maybe someone shares an email address?

from vertx-auth.

jpenglert avatar jpenglert commented on August 15, 2024

@tsegismont no worries...one of the committers responded and merged my PR. Thanks again for your help on how to resolve this.

from vertx-auth.

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.