Coder Social home page Coder Social logo

Comments (5)

wilkinsona avatar wilkinsona commented on July 22, 2024

We wouldn't make the condition itself public, but provide a public annotation that references the condition. That said, without significant demand, I'm not sure that it's something that we'd want to do and copy-pasting the code may be your best option. To help us to decide, can you please describe in a bit more detail what you're trying to do and the role that the condition would perform in that.

from spring-boot.

OrangeDog avatar OrangeDog commented on July 22, 2024

I'm trying to have service(s) that can optionally have SAML enabled via application properties.

I am building my own RelyingPartyRegistrationRepository, so I cannot use @ConditionalOnBean. There's only a single properly that triggers SAML configuration, but it's a map hence why you have a RegistrationConfiguredCondition in the first place instead of being able to use @ConditionalOnProperty.

What I have done is define my own saml.enabled boolean property to use, but that's not the best because Boot's autoconfiguration ignores it.

from spring-boot.

philwebb avatar philwebb commented on July 22, 2024

Thanks for the additional information @OrangeDog. I'm afraid I don't think we should make RegistrationConfiguredCondition public in our own code. I'd rather keep that code internal.

Give that the class is only about 60 lines I would recommend taking the copy/paste approach that @wilkinsona suggested.

from spring-boot.

OrangeDog avatar OrangeDog commented on July 22, 2024

Fine I guess, but I still have to check and re-copy it every time you change it.

from spring-boot.

philwebb avatar philwebb commented on July 22, 2024

If it's any consolation, the class hasn't had any functional changes since it was written 5 years ago.

from spring-boot.

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.