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?
Hello, I'm an experienced Spring developer but an Azure beginner.
I succesfully used Azure Service Bus in a Spring Boot 2.2 backend. But I meet a problem when using Azure CosmosDB (I'm using the "com.microsoft.azure:azure-cosmosdb-spring-boot-starter:2.3.2" starter) :
Does it ring a bell ? Is this the right place to talk about this issue ? Should I raise an issue in https://github.com/microsoft/spring-data-cosmosdb/issues ?
Thank you for your help. :)