Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Kamal Kumar
    ok, got it , it was my bad, I fixed it and sent the pull request
    Any one have idea what's wrong when we receive this error message ?Assertion audience does not match the Client app presenting the assertion.
    Hello, I want to use azure notification hub for notification in my spring boot project, but I have no idea about Microsoft azure. Could anybody guide me with it.?
    Any help would be appreciated.
    Yitao Dong
    Hi Trick. Our team has not provided a Spring Starter for Notification Hub yet. You could open an issue as feature request in Spring Boot Azure GitHub repo. I’ll follow up with you for detailed scenarios from there.
    Hi, do anyone know when the next release is planned?
    Kevin Zhao
    @xscript thanks!
    Hi There I was trying to build the project but found some issues, I was wondering if anyone could give us a pointer? I am a noob at this
    Wladislaw Mitzel
    Hi there. I', trying to understand some of the tests and right now I am a little bit confused when looking at 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?
    Michael Lavelle
    H there. Wondered if there was a scheduled release date for the b2c branch fo azure-spring-boot ?
    Yitao Dong
    @michaellavelle the preview release will be scheduled by end of this February.
    Has anyone encountered the issue "Could not autowire" with AADAuthenticationFilter?
    with spring boot 2.1.2
    Michael Velez
    I am trying to follow the example on setting up AAD B2C but running into a problem has anyone run this successfully?
    The network flows that I am going through in my browser seem like they are pretty much right but it seems like spring is having trouble building a Principal from the results
    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]
    Michael Velez
    I think I figured it out, I hadn't followed the steps exactly when creating the Sign Up/Sign In user flow because I wanted to only collect the bare minimum of data needed at signup point. But it turns out that "Display Name" is absolutely required.
    How can we validate a token using Spring Security Filter without configuring as Authorization or Resource Server ?
    OAuth2 v2.0 token specifically with Microsoft Azure
    Kylie Liang
    We are running a survey to better understand how you are running Spring Cloud today. Look forward to hearing from you. https://microsoft.qualtrics.com/jfe/form/SV_3sfoRGOef0HwP2d. Thank you.
    Ervis Zyka

    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.

    private String activeDirectoryClientId;

    The keyvault code replaces all the '.' characters with '-'

    so it can not transform it properly.

    We've managed to find a workaround by having the following line in the application.properties

    Any suggestions on how we should handle these kind of problems?

    Suman Mitra
    In a client-directed-flow I want to write a custom identity provider where I would like to use my service account. Iam writing a spring service and from there I would like to signs a service account to be validated against AAD to get the token. I want to avoid the popup. Is it possible?
    Hi, I'm looking for Client side encryption with Azure SQL and Spring Boot? Is there a tutorial about Always Encrypted? Thanks
    Martin Burchard
    Hello, has anyone successfully combined Azure B2C Auth with a stateless application?
    The B2C Auth itself is working
    com.nimbusds.jose.proc.BadJOSEException: Signed JWT rejected: Another algorithm expected, or no matching key(s) found
    François-David Lessard
    Anyone has an idea of when the next azure-active-directory-spring-boot-starter library using msal and the oauth2 endpoints will be released?
    Alexander Balyshyn

    Hi, guys. Can someone explain me what is the correct way to create the symmetric key on Azure Key Vault ( key type OCT)

    just to retrieve that key like this one:

    JsonWebKey jsonWebKey = ...
    Dieter Hubau
    Question: I'm trying something very specific with Spring Cloud Config and Azure Keyvault:
    but the Keyvault configuration does nothing, since the Keyvault properties are fetched via Spring Cloud config too late
    can I change the order of this property locator somehow?
    Matthias Cullmann
    Hi all, I've a similar question as @Turbots : I'm using Azure Key Vault and MongoDB. MongoDB connection string is placed in Azure Key Vault:
    • Start Spring Boot app
    • Actuator checks if MongoDB is available and doesn't find the configured connection string
    • fails..
    Florian Beaufumé

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

    • When using only Cosmos the app runs fine
    • But when using Cosmos + a relational database (such as H2), the applications fails to start. It seems that the Cosmos lib wrongly finds and implements the JPA repository interfaces.

    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. :)

    Hi Everyone
    I am new to Azure Cosmos DB
    can i spring-data-cosmosdb for AzureMongoDB?
    Cyril Sahula
    I use the library: "com.microsoft.azure:spring-cloud-azure-servicebus-topic-stream-binder:1.2.7". I can not find if the Spring Cloud Stream with this binder can do batch processing consumer. Does anybody implement a batch processing consumer with Spring Cloud Stream and Azure Message Bus? Thanks
    Alexander Wieser
    Does anybody know what the best practices are for validating different provider token from Azure B2C with a node express backend? If one person logs in using his/her Google account and another with a Facebook account, do I need multiple strategies or is there a single msal strategy handling all of them?
    "We are in the process of deprecating Spring Data Gremlin" Then How do we use azure graph API with Spring or Java?
    Strong Liu(刘少壮)
    @girishb89 thanks for the question, the Spring Data Gremlin module has been out of maintenance for over a year, as it has been on a deprecation path. we recommend you to use spring data cosmos or java sdk with graph api. But since it is opensource, we'd like to collect feedback from the community and see if there are more people interested in this lib, so how about create a feature request in https://github.com/Azure/azure-sdk-for-java/issues , and contribution is more welcome :D
    i am writing a quick spring boot app to pull data from a cosmos db. how to i map column names from snake_case to camelCase? in spring boot jpa there is a @column(name="whatever") annotation. is there something like that in cosmos spring boot?
    Eimert Vink
    Many questions, who is gonna answer us? Ms 👀