Comments (5)
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.
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.
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.
Fine I guess, but I still have to check and re-copy it every time you change it.
from spring-boot.
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)
- Fix documentation links in the README
- Fix documentation links in the README
- Add support for CNB platform API version 0.14
- Constructor binding of EnumMap fails due to missing key type HOT 2
- DynamicPropertyRegistry Values Not Set After Dev Tools Reload for RestartScope Containers
- Upgrade to Spring RESTDocs 3.0.2
- Upgrade to Spring Framework 6.2.0-M6
- Spring Boot 2 datasource can not run with Dockerfile HOT 4
- ClassNotFoundException in JSP compiler after update from Spring Boot 3.3.1 -> 3.3.2 HOT 6
- Broken documentation links HOT 2
- java.lang.LinkageError: loader 'app' attempted duplicate class definition for jakarta.persistence.TemporalType HOT 1
- Has the loading order of springboot3 beans changed? HOT 1
- Wait until spring-boot.rb file is available when updating Homebrew tap
- Spring Boot profiles not respected when fetching configuration files from Spring Cloud Config after native build HOT 7
- Constructor binding of EnumMap fails due to missing key type
- Constructor binding of EnumMap fails due to missing key type
- Use Spring SSL bundle in SAML2 signing
- RestClient.Builder vs RestClientAutoConfiguration's Implementation HOT 2
- wrong docs on Security auto configuration, custom SecurityFilterChain and Actuator Security?
- Disable automatic creation of observation on some scheduled tasks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.