We now have full support of Spring Boot 2.0 on the Spring Boot Starters for Azure . Plus, with new Java and Spring extensions for VS Code you can build production-ready apps and easily deploy them to the cloud.
Hi everyone, sorry for possibly bad question, but I am having an interesting issue :
I have a spring boot application, that uses classic SQL based DBs, mongo AND we now need to connect to Cosmos DB.
Went straight by the manual, but what I am getting is java.lang.NoSuchMethodException: com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean.<init>() during startup
Thanks for the feedback!!
@jhanlos could you please open an issue on GitHub? We can talk more there.
https://github.com/Microsoft/azure-spring-boot/issues
com.microsoft.azure.spring.autoconfigure.aad.AADAuthenticationFilterTest#beforeEveryMethod
There it says Assume.assumeTrue(!Constants.CLIENT_ID.contains("real_client_id"));
but the constant CLIENT_ID
contains exactly the string "real_client_id"
. So is this a (complex) way of ignoring tests, or is there something I don't understand?
2019-04-03 15:53:16.443 ERROR 17296 --- [nio-8080-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
java.lang.IllegalArgumentException: Missing attribute 'name' in attributes
at org.springframework.security.oauth2.core.user.DefaultOAuth2User.<init>(DefaultOAuth2User.java:67) ~[spring-security-oauth2-core-5.1.1.RELEASE.jar:5.1.1.RELEASE]
at org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser.<init>(DefaultOidcUser.java:89) ~[spring-security-oauth2-core-5.1.1.RELEASE.jar:5.1.1.RELEASE]
at org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService.loadUser(OidcUserService.java:93) ~[spring-security-oauth2-client-5.1.1.RELEASE.jar:5.1.1.RELEASE]
at org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService.loadUser(OidcUserService.java:51) ~[spring-security-oauth2-client-5.1.1.RELEASE.jar:5.1.1.RELEASE]
Hello,
I have the key "azure.activedirectory.b2c.client-id" stored in the azure keyvault
as 'azure-activedirectory-b2c-client-id'. I am trying to access this key in my code
using the @Value spring annotation.
e.g
@Value("azure.activedirectory.b2c.client-id")
private String activeDirectoryClientId;
The keyvault code replaces all the '.' characters with '-'
https://github.com/microsoft/azure-spring-boot/blob/master/azure-spring-boot/src/main/java/com/microsoft/azure/keyvault/spring/KeyVaultOperation.java#L117
so it can not transform it properly.
We've managed to find a workaround by having the following line in the application.properties
azure.activedirectory.b2c.client-id=${azure.activedirectory.b2c.clientId}
Any suggestions on how we should handle these kind of problems?