App is not starting on cloud foundry without dummy values for services.identity
See original GitHub issueHello colleagues,
I have added all the dependencies mentioned here: https://github.com/SAP/cloud-security-xsuaa-integration/blob/main/spring-security/README.md
But did not get the application running in cloud foundry, I also tried different combinations of the properties sap.spring.security.hybrid.auto
and sap.spring.security.xsuaa.flows.auto
. Because our application is only bound against csuaa I set the parameters like:
sap.spring.security.hybrid.auto: true
sap.spring.security.xsuaa.flows.auto: false
But with or without the parameters I always got an error message during startup. Without the parameters set I got a error that client ID is missing, with the parameters set, that some configuration class could not be found.
Only if I set the following properties in my application.yaml it works:
sap.security.services.identity:
clientid: irrelevant
domains:
- doesntmatter
The missing client Id did not come from the xsuaa instance, there a client Id was found, but from the IAS service configuration which was not found. It took me several hours to find this solution and the questions are now:
- Is there a better way without the properteies for
sap.security.services.identity
to get the application running only with binding to xsuaa? - If not, could you include a better way for the future?
Regards André
Question Summary If applicable, please mention:
- client library: java-security:2.11.11
- Environment: Cloud Foundry
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
@adamandre79 yes I was able to reproduce… need just time to fix it…
Hi @nenaraab,
just a short question for clarification:
In one of the first responses, which I can’t find anymore now, it was mentioned, that in case of only using xsuaa we shall use the library spring-xsuaa instead. So could you please give a short remark what is the purpose of the new library. Is it the replacement of the old spring-xsuaa library to be future prove or is it really only needed if you want to use xsuaa and ias?
Thanks André