You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please first read carefully Report an issue section before creating an Issue.
Issue Summary
A clear and concise description of the issue.
Initializing a spring boot app using version 2.11 fails to correctly initialize the default http client (worked in 2.10.5)
Steps to reproduce the problem: 1. 2. 3.
Create a spring boot app that uses xsuaaTokenFlows.clientCredentialsTokenFlow(), using the default http client and auto spring config.
In the app properties set the xsuaa configuration to use x509 certificate authentication.
Start the app (com.sap.cloud.security logs on DEBUG)
What is the expected result?
The x509 certificate should get loaded into the http client during init, and following request to fetching a token should work (worked in version 2.10.5)
What happened instead?
The certificate doesn't appear to get loaded. mTLS during token generation fails due to missing client certificate.
it seems to choose the non X509 http client because the ClientIdentity class apparently can't find the certificate and key from the XsuaaServiceConfiguration. There is a check that was introduced with 2.11.0 that requires both to be present. Are you using XsuaaServiceConfigurationDefault configuration?
Please first read carefully Report an issue section before creating an Issue.
Issue Summary
Initializing a spring boot app using version 2.11 fails to correctly initialize the default http client (worked in 2.10.5)
The x509 certificate should get loaded into the http client during init, and following request to fetching a token should work (worked in version 2.10.5)
The certificate doesn't appear to get loaded. mTLS during token generation fails due to missing client certificate.
Test app - https://github.wdf.sap.corp/hcp-reporting/metering-demo-app
Logs:
Version 2.10.5 (worked)
![image](https://user-images.githubusercontent.com/40950510/138310273-cb145fb1-c4a2-4502-afd6-c5dbfce558bf.png)
Version 2.11 (the issue)
![image](https://user-images.githubusercontent.com/40950510/138310355-8672ad89-177c-4a03-aa71-7ae287fdc832.png)
The text was updated successfully, but these errors were encountered: