question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App is not starting on cloud foundry without dummy values for services.identity

See original GitHub issue

Hello 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:

  1. Is there a better way without the properteies for sap.security.services.identity to get the application running only with binding to xsuaa?
  2. 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:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nenaraabcommented, Jan 27, 2022

@adamandre79 yes I was able to reproduce… need just time to fix it…

1reaction
adamandre79commented, Jan 12, 2022

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é

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting App Deployment and Health
Even when the deploy fails, the app might exist on Cloud Foundry. Run cf apps to review the apps in the currently targeted...
Read more >
SAP Cloud Identity Services - Identity Provisioning
No. Yes. Identity Provisioning and. Identity Authentication are running on the same SAP. Cloud Identity infrastructure.
Read more >
Cloud Foundry service vs app - Stack Overflow
The app sits on top of the stack and often has a user-interface. It consumes services (is built on services). The Cloud Foundry...
Read more >
Testing and deploying your application | Google App Engine ...
Specifying no files with the command deploys only the app.yaml file in your ... To specify the service ID, include the service element...
Read more >
SUSE Cloud Application Platform 1.5.2 - Release Notes
SUSE Cloud Foundry has been updated to version 2.20.3: ... Starting with SUSE Cloud Application Platform 1.5.2, you no longer need to set ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found